On Tue, 2007-08-14 at 20:54 -0400, - Tong - wrote:
> Hi, 
> 
> 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"
>  touch: invalid date format `est.file2'

How about
  $ touch -r "./-test.file1" "./-test.file2"

Richard



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to