grep Command in Linux Standard Examples

grep command is your friend for searching mainly text. It searches a given file for lines containing a given string or words. The grep command should be one of the most used commands and you should get familiar with it. I’m doing the same. Below are some standard grep commands: Search for any instance of […]

GREP command overview

The grep command means Global Regular Expression Print. This Linux command is one of the most useful commands out there. Below are some basic examples: grep ‘word’ filenamegrep ‘word’ filename1 filename2 filename3grep ‘string1′ string2’ filenamecat filename | grep ‘something’command | grep ‘something’ Next example, you can search for the user ‘tom’ in the Linux passwd […]