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

Enumerate some of the most commonly used network commands in unix?

612


Is grep faster than awk?

555


Explain ‘system calls’ with respect to unix commands?

598


How do I search a whole word in vim?

687


What is unix command?

579






Why is shebang used?

591


Which command can you use to find the currently running process in unix server?

583


Describe the usage and functionality of the command rm –r * in unix?

820


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

643


What are bash commands?

588


why metadb requires a seperate slice to create Solaris volume manager

2550


Write a command to kill the last background job?

614


Is it inbetween or in between?

574


Enlist some filename manipulation commands in unix.

544


What do chmod command do?

600