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

Answers were Sorted based on User's Feedback



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

Answer / sukumar

grep "???" <fileName>

Is This Answer Correct ?    3 Yes 9 No

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

Answer / giridhar tarare

grep -b "abc" <file_name>

Is This Answer Correct ?    2 Yes 10 No

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

Answer / sudhir kumar

sorry the command will be like below..

grep -x "abc" <file_name>

Regards,
Sudhir Kumar

Is This Answer Correct ?    6 Yes 17 No

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

Answer / sudhir

The command will be like this

grep -c "abd" <file_name>

This command gives you the line number which contain three
character.

Regrds,
Sudhir

Is This Answer Correct ?    6 Yes 18 No

Post New Answer

More Unix Commands Interview Questions

in UNIX,what is the command to remove directory with files?

10 Answers  


What is the basic difference between unix and windows operating systems?

43 Answers   Bopro, College School Exams Tests, CTS, IBM, IT-Kids, Priyadarshini, Sybian Technologies, Tolani Maritime,


what is the cmd to display the last exit status in UNIX?

5 Answers   MEIT, Syntel,


How does a user get the current date, time in UNIX?

6 Answers   IBM,


What is the significance of the 'tee' command?

0 Answers  






What Command is used to make a directory?

4 Answers   IBM,


What will the following command do?

0 Answers  


How to find and replace the below command?

2 Answers   HCL,


What do chgrp command do?

0 Answers  


Who invented grep?

0 Answers  


The rm command removes links to file. What does this mean? How then is a file deleted from the file system?

5 Answers  


What is the different between UNIX command and UNIX shell script?

2 Answers  


Categories