Search Contents Inside A File Using Grep


Search contents inside a file using grep.

The grep command, ( global regular expression print ), is one of the most versatile commands in a Linux terminal environment. It is a tool primarily used to search text or search any given file for lines containing a match to the supplied words/strings, like an e-mail or textbased file sent to a VAN's system.

Search contents inside a file using grep.

It is useful when/if working as support, when a customer sends in a file and wants a conformation that it was received and processed by the system.

Basic commands:

  • grep 'word' filename
  • grep 'word' file1 file2 file3
  • grep 'string1 string2'  filename
  • cat otherfile | grep 'something'
  • command | grep 'something'
  • command option1 | grep 'data'
  • grep --color 'data' fileName
Library categories: 

Games For Linux

Windows has always been the preferred platform for gaming, but after STEAM's interest in Linux more game developers are making their games natively available for Linux.


All information on this website is published in good faith and for general educational purposes and for use in safe testing environments only. While strives to make the information on this site as accurate as possible, does not warrant its completeness, reliability and accuracy.

We are not responsible for any losses or damages associated with the use of our website. While we strive to provide only links to useful websites, we have no control over the content of these sites and links to other sites do not constitute a recommendation for all content contained on these websites.


Site Information

This is a professional review site that receives compensation from the companies whose products reviewed. Each service or product are thoroughly tested and given high marks if considered to be the very best. Independently owned and the opinions expressed here are no one elses.


Limited Time Offers

Coming soon...