Last active
December 25, 2015 01:59
-
-
Save bjonord/6899450 to your computer and use it in GitHub Desktop.
Nifty terminal stuff
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Find a specific string inside a folder of files - | |
| find . -name "*.gz" -exec zgrep --color -nH "Pattern" \{\} \; # case sensitive | |
| find . -name "*.gz" -exec zgrep --color -iHn "Pattern" \{\} \; # case insensitive | |
| # General grep command - | |
| grep --color -nrH "tretti" ./* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ssh -f -L 5433:example:5432 [email protected] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment