write grep commands to select the lines that have exactly
two characters
Answers were Sorted based on User's Feedback
Answer / 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 |
what is the command to print last 8 lines of any text file.
How to display a file name which has zero bytes in size.
what is tar command and what are the different types of tar commands?
what is the default signal kill in unix?
How do you copy a directory with many files and folders into another directory?
what is shell?
what is Online(STM) and offline diagnostics in HP-UX?
Give the command to display space usage on the UNIX file system.
Is it inbetween or in between?
what is the command to list files in a directory in UNIX?
What command a user use to view a long text file one page at a time in UNIX?
What is awk good for?