Thursday, June 3, 2010

grep ... -w matches that form whole words


grep -w :: selects only those lines containing matches that form whole words.



$ cat samsung
id proof
license copy
check leaf 1
$

$ grep -w lic samsung
$ grep -w license samsung
license copy
$