[EdLUG] renaming of illegal filenames

Tai Kedzierski dch.tai at gmail.com
Wed May 20 10:02:32 UTC 2015


Also, you want to use the `rename` command to get those dashes out from
underfoot



===
Tai Kedzierski

IT Services Specialist
http://helpuse.com
+44 (0) 7526 963 612 (portable GB)

  I use www.libreoffice.org

*"Open Source Free Software is a matter of liberty, not price."*
https://bitly.com/1gXkUcc


On 20 May 2015 at 11:00, Tai Kedzierski <dch.tai at gmail.com> wrote:

> mv './-190207Cr5-Training#01.wav'
>
> specifically, say it's in the current directory
>
>
>
> ===
> Tai Kedzierski
>
> IT Services Specialist
> http://helpuse.com
> +44 (0) 7526 963 612 (portable GB)
>
>   I use www.libreoffice.org
>
> *"Open Source Free Software is a matter of liberty, not price."*
> https://bitly.com/1gXkUcc
>
>
> On 20 May 2015 at 10:58, Joe Barnett <joe-barnett at blueyonder.co.uk> wrote:
>
>> Hi folks,
>>
>> I've drawn a blank here,  I have a few files which I want to move but mv
>> does not like them and rename will not touch them.  I cannot even directly
>> ls them.
>>
>> The file names are as follows
>>
>> -190207Cr5-Training#01.wav
>> -190207Cr5-Training#02.tcl
>> -190207Cr5-Training#02.wav
>> -190207Cr5-Training.avi
>> -190207Cr5-Training.mda
>> -190207Cr5-Training.tcl
>>
>> for instance
>>
>> mv -190207Cr5-Training* 2007-02-19_training/
>> mv: invalid option -- '1'
>>
>> ls -190207Cr5-Training*
>> ls: invalid option -- '9'
>>
>> It's that - on the beginning.
>>
>> The files were created on a Windows (NT4) system,  Perhaps I could run up
>> a virtual NT machine to change them but there must be an easier way.
>>
>>
>>
>> Update - I've managed to move the files by going up to the parent then
>> back down to the child directory, it gets the - away from the front of the
>> file path but still I have the bad file name.
>>
>> Update 2 -  I've now renamed them individually by the same method,  but
>> what a pain!  There were only 6 to do this time,  but there may have been
>> more.
>>
>> Still there must be an easier way.
>>
>>
>> _______________________________________________
>> EdLUG mailing list
>> EdLUG at lists.edlug.org.uk
>> https://lists.edlug.org.uk/mailman/listinfo/edlug
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.edlug.org.uk/pipermail/edlug/attachments/20150520/0cf7c75b/attachment.html>


More information about the EdLUG mailing list