write grep commands to select the lines that have exactly
two characters

Answer Posted / amaresh

grep '^..$' filename

Is This Answer Correct ?    8 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is grep faster than awk?

556


Is it inbetween or in between?

578


What command will change your prompt to myprompt?

696


What is updatedb?

580


What does pipe () return?

590






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

578


What is unix command?

579


Differentiate cmp command from diff command.

585


What is awk good for?

581


Explain command to show the space allocation of files?

627


What is the general format of unix command syntax?

687


What is the difference between cat and more command?

623


What is s and g in sed command?

555


What is the first character of the output in ls l command?

629


How can you see the command line history?

580