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

Answer Posted / rajasekar utl

grep ^...$ <filename>

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which command is used to create a directory?

575


How do I use grep to find a file?

583


Which unix command to make a new directory?

592


How to use grep command to list find the records of a file containing 10 different strings?

647


What are awk commands?

585






What does sed command do in unix?

566


What is the comma to show the space allocation of files?

562


What is the significance of the 'tee' command?

599


Can you enlist some commonly used network commands?

602


What is {} in find command?

584


What is time_t?

588


What is the use of find command in unix?

587


What does find command return in unix?

596


Explain ‘system calls’ with respect to unix commands?

604


What is the use of sed command in unix?

601