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

Using unix command how to display no of records in oracle?

608


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

637


What does the command '$ls | wc –l > file1' do?

680


What is updatedb?

586


What is the use of egrep command in unix?

624






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

683


How do I search a whole word in vim?

693


What are bash commands?

595


Explain ‘system calls’ with respect to unix commands?

601


What is the difference between awk and grep?

561


What is the command to compare two files in unix?

619


What does the metacharacter mean?

608


What is awk good for?

584


Who command in unix operating system?

662


What's a command word?

589