Share this Page URL
Help

Searching Text Files Using pipe and grep - Pg. 416

Additional Command-Line Interface Commands launches Safari (or your preferred web browser) and opens the Apple home page. 416 Searching Text Files Using pipe and grep Use the grep command to search the contents of the listed text file or files. For example, in grep domain /etc/resolv.conf the file resolv.conf is searched for the word domain and the lines containing that word are displayed.