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

Answer Posted / udhaya

grep ^???$ <filename>

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does grep v do?

562


What is the difference between cat and more command?

627


What is the use of cut command in unix?

694


How do I run a whois command?

605


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

684






What does the metacharacter mean?

612


Differentiate cat command from more command.

578


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

644


How do I clear my terminal history?

586


Which command should you use to find the remaining disk space in unix server?

709


Is grep faster than awk?

561


Which unix command lists files/folders in alphabetical order?

620


What does grep v grep do?

556


What is awk command used for?

602


What is unix command line?

610