[nSLUG] Removing spaces from file names - note, long lines

Hatem Nassrat hnassrat at gmail.com
Wed Nov 12 22:41:13 AST 2014


Hi Vlado,

On Wed Nov 12 2014 at 10:32:22 PM Vlado Keselj <vlado at dnlp.ca> wrote:

>
> This one-liner does not do the same operation.  My main goal was
> to turn one or any chosen filenames that look like:
>
> Joe, Jack & Jane's document (version # 1) [draft].doc
>
> into something like:
>
> Joe--Jack_and_Jane-s_document_-version_=23_1-_-draft-_.doc
>

Saw your perl, honestly didn't mentally fully compile it, but it seems like
it would do the transformation as described. What is the reasoning /
requirements for the use of this kind of transformation, is it so you can
revert back to the original name?

-- Hatem
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nslug.ns.ca/pipermail/nslug/attachments/20141113/3199b275/attachment.html>


More information about the nSLUG mailing list