標題: 關於cp command的問題 [打印本頁]
作者: silvester 時間: 2009-1-31 12:25 標題: 關於cp command的問題
如果我有一堆files
file01.xxx
file02.xxx
file03.xxx
...
file99.xxx
我想cp 一個range的files eg. file10.xxx ~ file20.xxx
可以點做???
thx
作者: volospin 時間: 2009-1-31 12:52
試試 cp file1?.xxx [destination]
再 cp file20.xxx [destination]
作者: toylet 時間: 2009-1-31 17:05
提示: 作者被禁止或刪除 內容自動屏蔽
作者: hkstock 時間: 2009-1-31 17:44
e.g. file10.xxx ~ file37.xxx
you can try:
cp file[1-2]*.* /tmp
cp file3[0-7]*.* /tmp
where /tmp is the destination
