{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"
{xxx,yyy,zzz...}
cat {file1,file2,file3} > combined_file
cp file.{txt,backup}
# equal to cp file.txt file.backup
File=/etc/fstab
{
read line1
read line2
}<$File
{
echo hello
echo ...
}>"$1.test"
本文标题:Use of {}
本文链接:https://www.haomeiwen.com/subject/tmpgixtx.html
网友评论