1. “< file”
从文件中读取输入:
while read line; do echo $line; done < server.key
2. “<<”
称之为 “Here Documents”, 作为文件参数:
cat << 'EOF'
contents of the file
EOF
3. “<<<”
称之为 “Here String”,
read -ra var2 <<< “${var1:—config=msvc-cl}”
4. "<(command) "
子shell的输出作为文件参数:
cat <(ls -l)
while read line; do echo $line; done < <(ls -l)
command | tee <(grep fileter >> log.txt)
command | tee <(sed 's///g' >> log.txt)