Unix Command: Grep – Quick Reference – Pattern – Examples – Options
Grep scans its input for a pattern, and can display the selected pattern, the line numbers of the filenames where the pattern occurs, The command uses the following syntax grep options pattern filesname(s) grep searches for pattern in one or more filenames. Example for Grep command: grep “sales” emp.lst grep “director” emp1.lst emp2.lst grep ‘jai…
