
6 Jun
2013
6 Jun
'13
1:40 a.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.