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

Answer Posted / manoj kumar kar

grep ^...$ <filename>

Is This Answer Correct ?    12 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is grep short for?

556


What is grep and how do you use it?

577


What is command substitution?

625


What is nr in awk command?

603


What command is used to switching between users in unix?

562






What is the unix command to confirm a remote host is alive or not?

579


What do know about tee command and its usage?

589


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

591


What are the unix commands?

560


Is grep faster than awk?

557


What does the command ' $who | sort –logfile > newfile' do?

770


Explain command to show the space allocation of files?

629


What is grep in bash?

586


what is the advaantage of each user having its own copy of the shell?

2034


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

642