[EdLUG] renaming of illegal filenames

Joe Barnett joe-barnett at blueyonder.co.uk
Wed May 20 11:24:42 UTC 2015


Thanks guys!

I knew there must be a simple answer.  Now to try to get people to stop
naming files like that....

Joe.

On 20 May 2015 at 11:02, Stephen C. Tweedie <sct at redhat.com> wrote:

> Hi,
>
> On Wed, 2015-05-20 at 10:58 +0100, Joe Barnett wrote:
>
> > 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.
>
> "--" separates options from arguments for most of coreutils.  So any
> arguments beginning in a "-" will be correctly processed if you precede
> them with the "--".
>
> So "mv -- * [dest]" should work fine for these files.
>
> --Stephen
>
>
>
>
> _______________________________________________
> 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/abf7c29b/attachment.html>


More information about the EdLUG mailing list