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

Answer Posted / leo

grep ^...$ <filename>

Is This Answer Correct ?    24 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I use grep to search for a file?

582


What command is used to check the current users?

596


Which command is used to delete all files in the current directory and all its sub-directories?

665


What does touch command do in unix?

731


Which unix command lists files/folders in alphabetical order?

620






What does the metacharacter mean?

610


Can you enlist some commonly used network commands?

602


hw will u use awk in replacing cahrs and files

2735


How do I open a port?

596


Is there a way to erase all files in the current directory, including all its sub-directories, using only one command?

799


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

709


What is a bash command?

627


What is the search command in unix?

603


What is awk command used for?

601


How to find $ai_serual resolved path by using unix

1029