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

Answer Posted / ankita

grep '^..$'

Is This Answer Correct ?    12 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does pipe () work?

589


What does the metacharacter mean?

608


Explain command to view process running?

611


Explain ‘library functions’ with respect to unix commands?

601


How many unix commands are there?

623






why metadb requires a seperate slice to create Solaris volume manager

2552


What is the comma to display different lines that are found when compare two files?

592


Write a command that will display files in the current directory, in a colored, long format.

679


What are awk commands?

582


What is the use of sed command in unix?

591


What is the use of tee command?

567


Enlist some filename manipulation commands in unix.

546


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

764


How do you grep a case insensitive?

536


What is the use of the command 'ls -x chapter[1-5]' ?

659