The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Copy lines from a log file based on timestamp ranjiadmin UNIX for Advanced & Expert Users 1 05-22-2008 12:16 AM
retaining file path c00kie88 Shell Programming and Scripting 2 05-21-2008 09:18 PM
File timestamp stevefox UNIX for Dummies Questions & Answers 4 12-24-2007 10:14 PM
timestamp of file krisdhar UNIX for Dummies Questions & Answers 4 10-28-2003 07:31 AM
putting a timestamp in a file rocker40 UNIX for Dummies Questions & Answers 2 10-22-2003 08:56 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 09-10-2007
Registered User
 

Join Date: Jun 2007
Posts: 12
Retaining timestamp on copy of a file

While copying, how we can retain the same date for new file as it was on the old file.
Reply With Quote
Forum Sponsor
  #2  
Old 09-10-2007
RcR RcR is offline
Registered User
 

Join Date: Jun 2007
Posts: 10
Retaining timestamp on copy of a file

use the following command

touch -r <oldfilename> <newfilename>

Thanks,
Rajiv
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0