find *.html . -exec mv \{\} $(echo \{\}|sed -e 's/.html/.xhtml/' -) \;
mv: `./19-468.html' and `./19-468.html' are the same file
mv: `./13-468.html' and `./13-468.html' are the same file
...Why isn't the sed expression running/working?
__________________
Disclaimer: My posts may change (dramatically) within the first 15 minutes they're posted.












Sed uses regular expressions, so .html will match [any character]html . That doesn't answer your question, but could make things go wrong in this way:
book_about_html.html -> book_about.xhtml.html
CAN I HAS FIXD CAPSLOK KEE PLZ?
Login or register to post comments 0 points
But it's not doing that either.
Disclaimer: My posts may change (dramatically) within the first 15 minutes they're posted.
Login or register to post comments 0 points
Just warning you of the next problem since I have no idea what causes the current one
CAN I HAS FIXD CAPSLOK KEE PLZ?
Login or register to post comments 0 points
instead of escaping, just use single quotes (') and then try debugging it
Login or register to post comments 0 points
the $( ) is most likely being interpreted by your shell, as I can spot no counter-measure you have taken. Thus, to find, you want
mv {} {}.Thomas Jollans
GnuPG key: 1024D/A6B5 9461 B60F 2C80 2399 6B1E 2698 A70E F421 434B
Login or register to post comments 0 points