I need to convert a bunch of .rgb files into .pngs (each file should retain its original name).I want to find out how to convert the first file and then wrap the command in a 'for' loop.This is what i have so far:find . -name *.rgb | sort | sed -n \1\p | xargs convert zzzzz.pngBut this doens't work.How can I make the convert command to recognize the second argument zzzzz.png?
How to use 'convert' and 'xargs' together?
linux;bash;image manipulation