"grep"

Written by Pantas Manik on 2:04 PM

This command used to search for information in a file or files. For example, suppose that we have a file named "test" whose contents are
test1 test2
test3 test4
test5 test6
test7 test8
test9 test10


Then we can look up items in our file like this;
% grep test1 test
test1 test2
% grep test3 test
test3 test4
% grep test8 test
test7 test8

For more detail "grep" command you can use:
% man grep

Related Posts by Categories



Widget by Hoctro | Jack Book
  1. 0 comments: Responses to “ "grep" ”