Last active
August 29, 2015 14:14
-
-
Save yuanqing/466f13ce57cdb7d84230 to your computer and use it in GitHub Desktop.
This file contains 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
# SINGLE-QUOTED | |
# text between the single-quotes is read as a plain string | |
$ echo 'foo "bar" `baz`' | |
foo "bar" `baz` | |
# BACK-QUOTED | |
# text between the back-quotes is read as a command | |
$ echo `echo "foo"` | |
foo | |
# DOUBLE-QUOTED | |
# any nested back-quotes are to be read as commands | |
# all other text between the double-quotes is read as a plain string | |
$ echo "hello `echo "world"`" | |
hello world |
This file contains 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 * | grep foo | |
=> | |
Pipe(Call(Cat(), ["a.txt", "b.txt"]), Call(Grep(), ["foo"])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment