Change file extentions in a directory tree
I'm tying to pipe two commands in order to change .htm files to .html
in a directory tree. Both commands work separately but not when piped. 1st find /root/Desktop/Cisco -name *.htm 2nd rename .htm .html *.htm [me@box Cisco]# find /root/Desktop/Cisco -name *.htm | rename .htm .html *.htm rename: renaming *.htm to *.html failed: No such file or directory [me@box Cisco]# Thanks |
Did you try
Code:
find /root/Desktop/Cisco -name *.htm -exec rename .htm .html '{}' \; |
Perfect, Thank you
|
All times are GMT -5. The time now is 02:11 PM. |