- 3,129 hits
Place for playing with commands…
ODOC: bala@bala:~ Grep command searches the given file for lines containing a match to the given strings or words. By default, grep prints the matching lines. Use grep to search for lines of text that match one or many regular expressions, and outputs only the matching lines. -r used for recursive.
Ex: $ grep -r welcome *
/home/user/Desktop/file.txt:Welcome to “ODOC”
/media/Ubuntu/new.py: welcome to python