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

What are the commands in UNIX to list the files in a Directory?

609


What is grep and how do you use it?

567


What difference between cmp and diff commands?

714


What is awk command used for?

596


What command is used to switching between users in unix?

556






What is a command and examples?

573


What does find command return in unix?

584


What is in grep command?

637


Who command in unix?

562


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

624


What are file commands?

646


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

662


What is merge command in unix?

938


How do I use nslookup?

568


How does shebang work?

584