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 command to compare two files in unix?

624


What will the following command do?

617


Why is shebang used?

598


How do I use nslookup?

577


What is in grep command?

650






What is “chmod” command?

566


How do I search for text in vi?

588


What is the use of finger command?

601


What is a bash command?

627


What command is used to switching between users in unix?

564


What are the dos commands?

652


Explain the terms ‘system calls’ and ‘library functions’ with respect to unix commands?

644


What is the function of grep command in unix?

591


Explain command to view process running?

617


What do chgrp command do?

591