write grep commands to select the lines that have exactly
two characters

Answer Posted / arun

grep "^..$" filename

Is This Answer Correct ?    76 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do know about tee command?

605


Which command is used to delete all files in the current directory and all its sub-directories?

662


How do I search for text in vi?

586


What is the significance of the 'tee' command?

596


What is the pipe command?

576






What is the command to compare two files in unix?

618


What does pipe () return?

594


What is the use of egrep command in unix?

624


Explain mount and unmount command.

613


How do I run a whois command?

600


What does sed command do in unix?

564


How do I delete files from command prompt?

549


Why is it called a shebang?

572


Write a command that will display files in the current directory, in a colored, long format.

683


What is {} in find command?

584