I need to change the .bmp to .jpg how can I do that...I get this error in ur script sh: Syntax error: redirection unexpected
– DannyMar 31 '14 at 06:32
@Danny It is working for me, on both bash and zsh. What are you using? Judging by the error, try: find . -name '*.JPG' -exec 'sh' '-c' 'mv {} $(echo {} | sed "s/\.JPG$/\.jpg/")' ';'. For the .bmp to .jpg, is it just the extension or do you want to convert the file?
– PlasmaPowerMar 31 '14 at 06:40
this worked perfectly....I changed the .JPG to .bmp that solves my issue thanks a ton
– DannyMar 31 '14 at 06:42
bash
andzsh
. What are you using? Judging by the error, try:find . -name '*.JPG' -exec 'sh' '-c' 'mv {} $(echo {} | sed "s/\.JPG$/\.jpg/")' ';'
. For the.bmp
to.jpg
, is it just the extension or do you want to convert the file? – PlasmaPower Mar 31 '14 at 06:40