|
|||||||||||
|
Command touch and irregular file names
From: - Tong - <mlist4suntong(at)yahoo.com>
Date: Tue Aug 14 2007 - 20:54:33 EDT
How to let command touch to work with irregular file names? In my script I have touch -r "$file1" "$file2" the file1/2 can be anything file, ../path/file, /root/file, etc. The problem is when file1/2 are irregular file names. E.g., -test.file1/2. I.e., anyway to make the following touch command works? $ touch -r "-test.file1" "-test.file2" FYI, I tried this but didn't work: $ touch -r -- "-test.file1" "-test.file2" I think if the touch command uses the standard gnu getopt lib, then the above code should work, shouldn't it? Thanks tong -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.orgReceived on Tue Aug 14 23:30:57 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 02:11:26 EDT |
||||||||||
|
|||||||||||