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

How do I run a shell script?

0 Answers  


How do you clear the screen in linux?

0 Answers  


script is like x=10; y=20; [$x-ne$y]; echo $ please give me output.

2 Answers   Amdocs, Google,


What is sudo bash command?

0 Answers  


You want to verify which lines in the file kickoff contain ‘bob’. Which of the following commands will accomplish this?

0 Answers  


You issue the command head * what would the resulting output be?

0 Answers  


What is in mkdir command?

0 Answers  


What is cpu core in linux?

0 Answers  


What is the difference between locating and locate command?

0 Answers  


What does in makefile do?

0 Answers  


How do you check which file consuming more space in linux?

0 Answers  


What is file and example?

0 Answers  


Categories