commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
(relies on 'imagemagick')
Convert all .png files to .gif. This can also go the other way if you reverse the file extensions in the command, e.g.:
for file in *.gif; do convert "$file" "$(basename $file .gif).png"; done
If the file is named 'example1.png' it will be named 'example1.gif' when it is complete.
There are 4 alternatives - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.