Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

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 functionality of kernel in unix architecture?

13 Answers   HCL,


How to add content of one file into another file at the beginning

12 Answers  


Explain command to show the space allocation of files?

0 Answers  


what is virtual machine?

2 Answers   Infosys,


Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?

0 Answers  


How do I run a whois command?

0 Answers  


How do I open a port?

0 Answers  


Which command is used to delete all files in the current directory and all its sub-directories?

0 Answers  


what is the default permission for /etc/shadow file in UNIX

2 Answers   Wipro,


distinguish between physical addresses and logical address?

3 Answers   Infosys,


What command will bring user back to their home directory in UNIX?

13 Answers   IBM, Wipro,


Categories