撮影、現像したフィルムをフィルムスキャナでスキャンするときに、何故か画像に拡張子を付けて保存できない(本当はできるのかもしれない)。いちいち面倒だけど、下記のコマンドで、ディレクトリに入った画像に一括で .jpg の拡張子を付け加えてます。
for file in *; do mv -i $file `echo $file | sed 's/$/.jpg/'`; done
« クラムチャウダーカルボナーラ | Main | Macで写真のEXIF情報を一括編集する - ExifTool »
TrackBack URL for this entry:
http://www.typepad.com/services/trackback/6a00e54effe30288340134898bea7d970c
Listed below are links to weblogs that reference ファイル名に拡張子を追加するコマンド:
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Comments