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 / 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 |
Answer / jyoti pruthi
grep -n "..." <filename>
It will give u the lines that have only 3 characters with
line numbers. Here, "..." replace any 3 characters (single
dot represent single character).
| Is This Answer Correct ? | 0 Yes | 1 No |
What command will bring user back to their home directory in UNIX?
what do you understand by 'unix is a portable os'?
Which command is used to copy files?
How does pipe () work?
How many unix commands are there?
Differentiate cat command from more command.
what is the command to print last 8 lines of any text file.
What is the first character of the output in ls l command?
How i'll delete a particular line from the file? Please give answer as soon as possible. Thanks in advance.
What is an Unix command to convert HEX value to ASCII value located in any flat file.
What is ctrl d?
what is virtual machine?