ブレース展開ブレース展開とは? $ echo {foo,bar,baz}
foo bar baz # (1)
$ echo foo{,bar,baz}
foo foobar foobaz # (2)
ブレース展開を利用してcpのファイル名を指定する $ touch test.txt
$ cp test.txt{,.orig}
$ ls -1
test.txt
test.txt.orig
参考https://www.gnu.org/software/bash/manual/html_node/Brace-Expansion.html |
|