This winter holiday season, give a precious gift to your career by upgrading your skills. | Get Flat 15 - 20% OFF on All Courses | Save Today

[iqquestion id=164]

2 thoughts on “Unix : More UNIX commands Discussion 5

  • bsingh

    ‘grep’ command is used to search files for specific words or sentences. For example:

    /var/root/va # grep “you” herndon

    Above syntax will search for word ‘you’ in file name ‘herndon’ which is in directory ‘va’ and so on. Result will be displayed as the line or lines with the word ‘you’ in it.

    I hope this make sense:) just give it try, it will work

  • Ed Nartey

    The grep command is used to search text or searches the given file for lines containing a match to the given strings or words.

    grep ‘word’ filename

    grep jay qa

    will search all the words “jay” in the file qa

Leave a Reply