Write a grep (or grep) command that selects the lines from
a file that have exactly three characters.
Answer Posted / saravan
Sorry use the below commands to get the exact word contains
3 char in the file.
grep -w "[a-zA-Z][a-zA-Z][a-zA-Z]" <filename>
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Does cp command overwrite files?
What is awk used for?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What are filter commands in unix?
What is awk command used for?
Which unix command lists files/folders in alphabetical order?
What is the functionality of a top command?
What is ctrl d?
Who invented grep?
How do I search for text in vi?
Explain command to display different lines that are found when compare two files?
Write a command to kill the last background job?
Which command should you use to find the remaining disk space in unix server?
Explain mount and unmount command.
What happens when we execute a unix command?