4
# can have more than one
5
cat <(echo "hello 2") <(echo "hello 3")
7
# doesn't work in quotes
8
echo "<(echo \"hello 0\")"
10
# process substitution can be nested inside command substitution
11
echo $(cat <(echo "hello 4"))
13
# example from http://wiki.bash-hackers.org/syntax/expansion/proc_subst
14
# process substitutions can be passed to a function as parameters or
19
x=>(tr '[:lower:]' '[:upper:]') f <(echo 'hi there')
21
# process substitution can be combined with redirection on exec
25
# copy stderr to a file
27
echo "hello error" >&2
33
echo "hello stderr" >&2