The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > AIX
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-12-2008
shibajighosh shibajighosh is offline
Registered User
 

Join Date: Apr 2008
Posts: 6
Change a file's timestamp

Hi,

I want to modify a file and then change the file's timestamp back to what it was before the modification. It should look as if the file has'nt been modifed. The entire operation needs to be done inside a ksh script. Can anyone suggest how I can trap a file's stamp in a variable within a shell.

Thanks in advance.
Reply With Quote
Forum Sponsor