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.

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' "

Filename completion fortunately handles spaces, so:

$ touch /tmp/"another spaced filename"
$ unspace /tmp/another\ spaced\ filename
$ ls /tmp/an*
/tmp/another_spaced_filename

doesn't require much typing, after the first line.

Oh for the halcyon days when we could just tell users that spaces
weren't allowed.

Erik

-- 
Life is complex: it has a real part and an imaginary part. - Martin Terma

_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to