Monday, 23 June 2014

Find inside a file or directory

Problem: Find a word inside a file or directory

Solution: grep command can be used to find a word inside a file.

[root@iravath search]# grep -rnw '.' -e "Apple"
The above command search for word "Apple" inside a file. The word "Apple" was found in names.txt at line number 3.

1 comment:

  1. This information is impressive; I am inspired with your post writing style & how continuously you describe this topic.

    Pawn Shop

    Pawn Loans

    Pawn Shops

    Pawn Loan

    Pawn Shop near me