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

describe the escaping sequence characteres in unix

1 Answers  


in unix echo is used for

10 Answers   BFL, BirlaSoft, Patni,


what are the uses of filters?

3 Answers  


How do you know about running processes of a particular user?

11 Answers  


what is the advaantage of each user having its own copy of the shell?

2 Answers   Infosys,


why unix commands can be divided into internal and external commands?

3 Answers   Informatica,


Write a command to display a file’s contents in various formats?

0 Answers  


What is $0 bash?

0 Answers  


what is the significance of "su" command?

3 Answers  


Explain command to display different lines that are found when compare two files?

0 Answers  


Explain command to show the space allocation of files?

0 Answers  


What will the following command do?

0 Answers  


Categories