關於cp command的問題

如果我有一堆files
file01.xxx
file02.xxx
file03.xxx
...
file99.xxx

我想cp 一個range的files eg. file10.xxx ~ file20.xxx

可以點做???

thx

試試 cp file1?.xxx [destination]
再 cp file20.xxx [destination]

TOP

提示: 作者被禁止或刪除 內容自動屏蔽

TOP

e.g. file10.xxx ~ file37.xxx

you can try:
cp file[1-2]*.* /tmp
cp file3[0-7]*.* /tmp

where /tmp is the destination

TOP