What is the syntax of grep command and what is its use?
Answer Posted / ankita
grep is used to find the patterns inside files.
grep -options "pattern" file_name
grep -i "hello" test_file
this is search for "hello"(case doesn't matter as we have used -i) in test_file
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to find $ai_serual resolved path by using unix
What is pipe command in unix?
Who command in unix operating system?
What does this command do? Cat food 1 > kitty
What does the command ' $who | sort –logfile > newfile' do?
What's a command word?
What is time_t?
What are the unix commands?
What is the comma to show the space allocation of files?
What does touch command do in unix?
Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?
What are awk commands?
Name the various commands that are used for the user information in unix.
hw will u use awk in replacing cahrs and files
What do chmod, chown, chgrp commands do?