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 use of ls -l command & what is the information it gives about user ?
distinguish between user mode and kernel mode?
What does 'mkdir' command do in UNIX?
which command is used to change group?
what is the command to find out which shell you are running?
How do you stop a running process?
The rm command removes links to file. What does this mean? How then is a file deleted from the file system?
what is the use of wild cards?
How do you change file permissions and ownership in Unix?
how to find the 51th record of a file containing 100 records in unix.
Write a grep (or grep) command that selects the lines from a file that have exactly three characters.
How to display a file name which has zero bytes in size.