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 general format of unix command syntax?
In vi editor how do you execute unix commands?
what do you understand by 'building block primitive'?
What UNIX command will control the default file permissions when files are created?
What difference between cmp and diff commands?
Is grep faster than awk?
What is the use of awk command in unix?
Explain the read, write, and execute permissions on a UNIX directory.
What is the difference between udp and tcp?
Write a command that will output the sorted contents of a file named in.txt and place the output in another file named out.txt, while at the same time excluding duplicate entries.
How do you move a process which is running background to foreground?
What is the command to view process running?