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

Answer Posted / satyawan

grep -n '\w{3}' <filename>

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

why metadb requires a seperate slice to create Solaris volume manager

2556


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

623


How do I search a whole word in vim?

693


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

1578


What is grep r?

591






Why is shebang used?

595


What is awk used for?

619


What is the use of tee command?

569


What is merge command in unix?

946


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

707


What is the functionality of a top command?

625


Who command in unix?

573


Write a command that will display files in the current directory, in a colored, long format.

683


What do chgrp command do?

590


What does sed command do in unix?

566