What is the syntax of grep command and what is its use?
Answers were Sorted based on User's Feedback
Answer / bharath
grep command is used to search a file for keywords.
grep 'keyword' file
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / amit
grep command is used to search the any word, any sentence
from given or input file.
syntex of grep command is
grep "word or sentence" filename
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / 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 |
Answer / shilpa
syntax= % grep pattern file-name-1 file-name-2
It is used to search files
| Is This Answer Correct ? | 0 Yes | 1 No |
Which command is used to find whether the system is 32 bit or 64 bit?
How do you remove a crontab file?
in UNIX,How do you check for processes started by particular user suppose the user name is 'suresh'?
what is the command to print last 8 lines of any text file.
How to display no of records in oracle using unix command?
What are the dos commands?
What is ctrl d?
What are filter commands in unix?
Which command can you use to find the currently running process in unix server?
what are the different operating systems available?
What is shrinking file system in AIX where it actually resides?
How to set sticky bit, or it have any seperate directory to create sticky bit in sunfir servers. Please help me , i don't no the exact answer?