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...


Explain how you would find a specific string in a file.



Explain how you would find a specific string in a file...

Answer / hr@tgksolutions.com

You can use the 'grep' program to locate a certain string in a file. 'grep "search_string" filename', for instance, will look for'search_string' inside 'filename' and show the lines that match.

An ideal applicant will be aware of extra options like 'grep -i' for case-insensitive searches and 'grep -r' for recursive directory searches. This indicates a deeper comprehension of the proper use of 'grep'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Linux Commands Interview Questions

What is the command to list ALL (hidden also) files of current directory & it’s subdirectories?

6 Answers  


Compare between SYS V launched processes and Xinetd processes in Linux.

1 Answers  


What is the purpose of the 'ps' command?

1 Answers  


Explain trap command of linux?

0 Answers  


What does the command env do?

0 Answers  


Which command would you use to create a file system on a new hard drive?

0 Answers  


What does sh do in linux?

0 Answers  


What is the purpose of the "top" command?

1 Answers  


How do I get to root in linux?

0 Answers  


What is $$ in shell script?

0 Answers  


What is command to check ports running/used over local machine

0 Answers  


What is devops model?

0 Answers  


Categories