Write a grep (or grep) command that selects the lines from
a file that have exactly three characters.

Answer Posted / chintalapudi

grep -x '^???$' <filename>

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the general format of unix command syntax?

694


Can you enlist some commonly used network commands?

600


Why is grep called grep?

781


What does grep v grep do?

554


Give the command for finding the current date.

583






What does #!/ Bin sh do?

591


What is the use of egrep command in unix?

624


How to display no of records in oracle using unix command?

589


What is the use of sed command in unix?

601


How can you see the command line history?

585


What is awk command used for?

600


How do I clear my terminal history?

586


What is ‘ps’ command for?

614


Which command is used to find whether the system is 32 bit or 64 bit?

631


What is grep command in unix with examples?

608