How do I look recursively for all the files containing a certain string?

December 4, 2010 in Recipes, Shell

To find all the occurrences of the string tabular in all the files hosted in the current directory use the command: grep -nir “tabular” * where n prints the line
…read more

How to tar and gzip a directory in one command?

December 4, 2010 in Recipes, Shell

This way (for the directory foo): tar -zcvf foo.tgz foo/