InterviewSolution
Saved Bookmarks
| 1. |
Write difference between grep and find command. |
Answer»
Example: grep “apple” file1.txt //Displays all the lines with the word “apple” in the file1grep “apple” file1.txt file2.txt //Scan MULTIPLE documents and search the word “apple” in both files.
Example: find –type f // Command will find all the filesfind –type d //Command will find all the directoriesfind . –name file1.txt //Command will find file1.txt in the CURRENT directory. |
|