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 are bash commands?

597


What does the command '$ls | wc –l > file1' do?

684


What are the unix commands?

560


What is ctrl d?

596


Why is shebang used?

598






What are the differences among a system call, a library function, and a unix command?

567


How do I open a port?

596


What are the dos commands?

652


What is .sh file?

624


What is ‘ps’ command for?

618


What is command statement?

543


Write a command to kill the last background job?

620


How do I find previous commands in unix?

594


Why is grep called grep?

783


What is unix command line?

610