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 |
Differentiate cat command from more command.
What is the use of egrep command in unix?
Which Command is Used for temprary switch User?
How do I run a whois command?
how to check a file system type
What is the use of find command in unix?
What is the use of touch command in there?
what is mount ,tell me about mount ,how can u use in real time project??
How can we "forked" process in UNIX? How then recognize in any of the branches we?
If JFS file system is 100% full how we can increase the file system ?
What is the command to compare two files in unix?
What do chmod command do?