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

Answer Posted / saravan

grep -w [a-zA-Z][a-zA-Z][a-zA-Z] <filename>

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is awk command used for?

602


What does the “echo” command do?

624


Explain ‘library functions’ with respect to unix commands?

604


Is it inbetween or in between?

587


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

589






What does find command return in unix?

596


Which unix command lists files/folders in alphabetical order?

620


What are awk commands?

585


What will the following command do?

617


Why is it called grep?

563


How do I delete files from command prompt?

554


Describe the zip/unzip command using gzip.

615


How do I use grep to search for a file?

584


What happens when we execute a unix command?

600


What is grep in bash?

589