LoginSignup
3

More than 5 years have passed since last update.

大量の画像ファイル (.gif) を (.png) に変換したコマンド

Posted at

1.この記事で学べること

  • 少なくともタイトル通りのことはできる
  • 単純に拡張子を変換するときにも応用できそう

2.コード例

$for file in *.gif; do
>  convert $file ${file%.gif}.png
>done

こんな感じ。

$for file in *.txt; do
>  mv $file ${file%.txt}.foo
>done

こんなこともできそう。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3