Created
December 6, 2020 20:39
-
-
Save gbarreiro/ce853672b7dc04286e3e254252d6a138 to your computer and use it in GitHub Desktop.
Bash cheatsheet: pipes
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
a | b # pipe: inject a command output into b command input | |
a > file.txt # save output of command a into file.txt (overwrite) | |
a >> file.txt # save output of command a into file.txt (append) | |
echo "Hello!" | xargs echo # injects the output of the first command as an argument of the second command |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment