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

Answer Posted / manoj kumar kar

grep ^...$ <filename>

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are reported commands?

568


How does the system know where one command ends and another begins?

1579


What is the use of finger command?

601


Who command in unix operating system?

663


How can you see the command line history?

586






What is the behavioural difference between cmp and diff commands?

677


How do you grep a case insensitive?

541


How does shebang work?

594


How do I delete files from command prompt?

555


What's a command word?

591


What are awk commands?

586


What will the following command do?

617


Write a command to display a file’s contents in various formats?

627


Name the unix command to find how many days the server has been up.

605


Explain command to display different lines that are found when compare two files?

678