Write a grep (or grep) command that selects the lines from
a file that have exactly three characters.
Answers were Sorted based on User's Feedback
Answer / sudhir kumar
sorry the command will be like below..
grep -x "abc" <file_name>
Regards,
Sudhir Kumar
Is This Answer Correct ? | 6 Yes | 17 No |
Answer / sudhir
The command will be like this
grep -c "abd" <file_name>
This command gives you the line number which contain three
character.
Regrds,
Sudhir
Is This Answer Correct ? | 6 Yes | 18 No |
What does 'mkdir' command do in UNIX?
What is a command and examples?
What are reported commands?
why unix commands can be divided into internal and external commands?
how to find the 51th record of a file containing 100 records in unix.
What are some command words?
29. How to display top 10 users Who | head -10 | wc –w
What does the metacharacter mean?
what is virtual machine?
Which command is used to kill the last background job?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What is the command to check ports active in UNIX?