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
Which command is used to restrict incoming messages?
How many unix commands are there?
Why is awk called awk?
What command is used to switching between users in unix?
What is the functionality of a top command?
What does 'mkdir' command do in UNIX?
How do I run a whois command?
Who wrote grep?
Which command is used to find whether the system is 32 bit or 64 bit?
Which command is used to delete all files in the current directory and all its sub-directories?
Can you explain a little bit about command substitution?
What is the significance of the 'tee' command?
What are the commands in UNIX to list the files in a Directory?
Who invented grep?
How do I search for text in vi?