You're replying to a comment by Steven Haryanto.

August 24, 2012, 03:12

Perhaps mention process substitution too? It's in bash and zsh.

Stolen from http://tldp.org/LDP/abs/html/process-sub.html because I'm too lazy to come up with examples myself:

bash$ grep script /usr/share/dict/linux.words | wc
    262     262    3601
bash$ wc <(grep script /usr/share/dict/linux.words)
    262     262    3601 /dev/fd/63

% diff <(command1) <(command2)    # Gives difference in command output.

% tar cf >(bzip2 -c > file.tar.bz2) $directory_name

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "lcd_329": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.