
Erik Christiansen <dvalin@internode.on.net> wrote:
On 04.06.13 23:45, Craig Sanders wrote:
spaces in filenames, OTOH, are quite common. especially if you have to deal with files uploaded by Mac or Windows users.
I don't have to deal with those, fortunately. Anything that arrives in e-mail attachments gets renamed anyway in most cases to make it easier to find later.
Although it's mostly xpdf which won't handle spaces in filenames, I'm finding a simple alias useful for the few arriving here:
alias unspace="/usr/bin/rename 's/ /_/g' "
That's useful, thanks. I'll save it for when the problem arises.
Oh for the halcyon days when we could just tell users that spaces weren't allowed.
Agreed. On my machines, though, I'm the only user and I'm not responsible for other peoples' systems, so it's easy to enforce that kind of requirement here.