Last active
December 6, 2020 18:23
-
-
Save gbarreiro/60343ba52a3314083836a094578ceabe to your computer and use it in GitHub Desktop.
Bash cheatsheet: filter output
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
cat verylongfile.txt | more # shows the content of verylongfile.txt split in pages | |
cat verylongfile.txt | less # shows the content of verylongfile.txt split in pages, with support for scrolling and backwards navigation | |
cat verylongfile.txt | grep "I love you" # shows the lines where the string "I love you" is found |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment