write grep commands to select the lines that have exactly
two characters
Answer Posted / mr. manindra nayak
grep -w '^..$' filename
or grep '[a-z][a-z]' filename
or grep '[A-Z][A-Z]' filename
| Is This Answer Correct ? | 2 Yes | 10 No |
Post New Answer View All Answers
What does the metacharacter mean?
Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?
What is the use of find command in unix?
What are the differences among a system call, a library function, and a unix command?
How to find $ai_serual resolved path by using unix
What is the difference between awk and grep?
Which command can you use to find the currently running process in unix server?
What is time_t?
How does pipe () work?
What is the general format of unix command syntax?
What is awk command used for?
How do I run a whois command?
Is it inbetween or in between?
What is a bash command?
What is used to type command?