Saturday, October 15, 2011
10:33 PM

grep command in Linux/Unix

grep command in Linux/Unix


                               grep (global regular expression parse) is use for searching a pattern in a files or files . grep scan its input for a pattern and display the lines containing the pattern, line number , files which contain the pattern etc.


syntax:


grep [option] pattern file-name(s)


let we have file  sandeep.lst contains following data
$ cat >

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.