0
如何使用特定前綴複製文件LTE*.html
,Voicemail*.html
複製具有特定前綴的多個文件
$ ls
2G_3G_cccccc.html other_dddd.html other3_dddd.html Voicemail_bbbbbb.html
LTE_aaaa.html other2_dddd.html subdir1
我已經試過,但沒有喜悅
$ cp '(LTE*|Voice*).html' subdir1/
cp: cannot stat `(LTE*|Voice*).html': No such file or directory
因此,這將是這個結果我想
$ ls subdir1/
Voicemail_bbbbbb.html LTE_aaaa.html