Monday, May 17, 2010

grep * wildcard


to match repetitions of a character a star is used.



$cat samsung
id proof
license copy
check leaf 1



$grep *p* samsung
$grep p* samsung
id proof
license copy
check leaf 1



$grep p samsung
id proof
license copy
$grep *p samsung
$grep * samsung
Binary file PCBSD8.0-x86-bootonly.iso matches
$grep "*" samsung
$grep "p*" samsung
id proof
license copy
check leaf 1



$grep "*p*" samsung
$