how to convert one file extension to another in a single command line in linux?
i want to convert *.html to *.php recursively and retain the original file.
how to convert one file extension to another in a single command line in linux?
i want to convert *.html to *.php recursively and retain the original file.
Please don't mind me. I am just posting a lot of nonsense.
Well, one way, perhaps not the most elegant:I'm pretty sure something better is possible in zsh with regular expressions, but it's too early for the man pages to make sense.Code:find -iname '*.php' /top/directory -exec cp {} `dirname {}`/`basename {} .php`.html \;![]()
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Bookmarks