Use of {}

作者: lucientlau | 来源:发表于2017-12-12 10:57 被阅读0次

{xxx,yyy,zzz...}

cat {file1,file2,file3} > combined_file
cp file.{txt,backup}
# equal to cp file.txt file.backup

Redirection

File=/etc/fstab
{
read line1
read line2
}<$File

{
echo hello
echo ...
}>"$1.test"

相关文章

网友评论

      本文标题:Use of {}

      本文链接:https://www.haomeiwen.com/subject/tmpgixtx.html