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

Answer Posted / mr. manindra nayak

grep -w '^..$' filename
or grep '[a-z][a-z]' filename
or grep '[A-Z][A-Z]' filename

Is This Answer Correct ?    2 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do know about tee command?

615


Is it inbetween or in between?

592


What is the function of grep command in unix?

608


Write a command that will find all text files in a directory such that it does not contain the word "amazing" in any form (that is, it must include the words amazing, amazing, or amazing)?

973


What do chown command do?

545






What are bash commands?

606


Explain ‘library functions’ with respect to unix commands?

612


How do you grep a case insensitive?

552


How do I delete files from command prompt?

555


What is grep command in unix with examples?

618


What does grep v grep do?

558


What is ctrl d?

604


Describe the zip/unzip command using gzip.

622


What is the use of find command in unix?

592


What is “chmod” command?

579