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 is the command to compare two files in unix?
How does shebang work?
What is the comma to display different lines that are found when compare two files?
Explain ‘system calls’ with respect to unix commands?
Write a command to kill the last background job?
How can we use grep command in unix?
How do I search for text in vi?
What do chmod, chown, chgrp commands do?
What are the general commands in using unix os for a beginner?
What is $0 bash?
What is s and g in sed command?
How do I open a port?
What does this command do? Cat food 1 > kitty
What does #!/ Bin sh do?
Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.