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

Explain ‘library functions’ with respect to unix commands?

604


What is the command to view process running?

577


What are grep patterns?

579


Can you enlist some commonly used network commands?

602


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

567






Is ‘du’ a command? If so, what is its use?

639


What command is used to check the current users?

596


Describe the zip/unzip command using gzip.

615


What does grep v do?

562


Explain ‘system calls’ with respect to unix commands?

604


why metadb requires a seperate slice to create Solaris volume manager

2556


What does sed command do in unix?

566


Explain command to display different lines that are found when compare two files?

678


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

647


What is awk used for?

624