5 Jun
2013
5 Jun
'13
11:10 p.m.
Erik Christiansen <dvalin@internode.on.net> writes:
alias unspace="/usr/bin/rename 's/ /_/g' "
Suggest '[[:space:]]' instead of just ' '.
Filename completion fortunately handles spaces, so:
$ touch /tmp/"another spaced filename" $ unspace /tmp/another\ spaced\ filename
You might as well just "unspace *"; it'll noop normal stuff and be idempotent on the problem ones.