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


Please Help Members By Posting Answers For Below Questions

What is the use of finger command?

598


What is rmdir command?

553


What is the use of sed command in unix?

597


What is the comma to show the space allocation of files?

558


Write a command to kill the last background job?

618






Which command can you use to find the currently running process in unix server?

586


What is the general format of unix command syntax?

691


What is the command to find hidden files in the current directory?

580


What are the general commands in using unix os for a beginner?

577


What does #!/ Bin sh do?

588


What is grep and how do you use it?

575


What's a command word?

585


What is the functionality of a top command?

623


What is unix command line?

606


What does find command return in unix?

592