命令列下複製多個檔案與批次轉換圖檔

Copy range of files

cp file{01..34}.bmp [dst]

Batch convert BMP to JPEG

  1. mogrify -format jpg *.bmp
  2. for i in *.bmp; do convert ${i} ${i%bmp}jpg; done # {i%bmp} 會把bmp去除
  3. find -name *.bmp -type f -exec convert '{}' '{}'.jpg ;
Reference:

沒有留言:

張貼留言