Avoid replacing spaces when renaming files – askubuntu.com 08:31 Posted by Unknown No Comments I'm trying to rename files like this: for file in *; do mv -i "$file" "$(echo "$file" | sed -e 's/[^A-Za-z0-9._-]/_/g')"; done But the sed command replaces all spaces with _. How can I edit the sed ... from Hot Questions - Stack Exchange OnStackOverflow via Blogspot Share this Google Facebook Twitter More Digg Linkedin Stumbleupon Delicious Tumblr BufferApp Pocket Evernote Unknown Artikel TerkaitGoodbye Cruel World! – codegolf.stackexchange.comWhat is the reason for a fuse next to a thermostat? – electronics.stackexchange.comCan a spell be cast through (semi) transparent things? – rpg.stackexchange.comCould I issue clearances at a private airstrip without being a controller? – aviation.stackexchange.comIs there a word or idiom that refers to "short distance", other than "walkable" and "a stone's throw"? – english.stackexchange.comA confusion about meaning of "in 4" in this sentence – ell.stackexchange.com
0 Comment to "Avoid replacing spaces when renaming files – askubuntu.com"
Post a Comment