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


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to