Use of {}

{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 {})