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 are the differences among a system call, a library function, and a unix command?
What is the general format of unix command syntax?
What does the “echo” command do?
What is {} in find command?
What is pipe command in unix?
what is telnet?
What do you mean by zambie process?
what is exact definition of operating system?
What does 'mkdir' command do in UNIX?
In vi editor how do you execute unix commands?
What is a Unix signal, and how do you handle them?
How does the system know where one command ends and another begins?