On Fri, 2 Aug 2024 23:24:44 +0000, Gibney, Dave wrote:

>I always understood that Unix touch was primarily used to for non-distructive 
>assurance that the file existed. No changes to an existing file and 
>automatically creating a file when it was not already there.
>
"touch" creates a file but updates the modified time of
an existing file.

"touch -c " updates the modified time of an existing file
but does not  create a file.

To create a file but not update the modified time of
an existing file I use ": >>fi;ename".

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to