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

Answer Posted / ramesh

grep "^...$" <file name>

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of awk command in unix?

581


What is the command to find maximum memory taking process on the server?

673


What is sed awk grep?

608


What is command statement?

542


What are the differences among a system call, a library function, and a unix command?

567






Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

623


What is awk good for?

584


Differentiate cmp command from diff command.

586


How do I open a port?

596


what is the advaantage of each user having its own copy of the shell?

2034


What happens when we execute a unix command?

597


What is the use of cut command in unix?

692


How many unix commands are there?

627


How do I delete files from command prompt?

549


What is grep in bash?

586