bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Command touch and irregular file names


From: Philip Rowlands
Subject: Re: Command touch and irregular file names
Date: Wed, 15 Aug 2007 21:23:52 +0100 (BST)

On Tue, 14 Aug 2007, - Tong - wrote:

How to let command touch to work with irregular file names?

FYI, I tried this but didn't work:

$ touch -r -- "-test.file1" "-test.file2"
touch: invalid date format `est.file1'

That's nearly right; put the -- immediately following the last option, e.g.

$ touch -r '-test.file1' -- '-test.file2'


Cheers,
Phil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]