The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
UNIX command: mv - Objective: move files based on timestamp HLee1981 UNIX for Dummies Questions & Answers 4 07-11-2008 02:02 PM
Change a file's timestamp shibajighosh AIX 6 05-27-2008 02:26 PM
Move A File With Same Date,don't Change The Desitination Dir Date jee.ku2 UNIX for Dummies Questions & Answers 1 01-09-2008 01:42 PM
change timestamp of file isingh786 HP-UX 1 05-15-2006 02:56 PM
Timestamp of File permission change jyotipg UNIX for Advanced & Expert Users 1 02-19-2003 03:02 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-10-2007
tekster757 tekster757 is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 33
Unhappy move file change timestamp

Hello,

Alright solution:
I need to move files to a backup folder, changing the datestamp to the current day so that the file stays in the backup folder for the full 30 days before another script removes it. Obviously, any file I move in will preserve the timestamp which is what I *don't* want.

Ideal solution:
Better yet (but probably impossible), is there any way to detect when a new file is being put into the folder and automatically change the date to the current day when it's put in?

Thanks,

Last edited by tekster757; 08-10-2007 at 10:00 AM.. Reason: easy to misunderstand the 2nd question
  #2 (permalink)  
Old 08-10-2007
kahuna's Avatar
kahuna kahuna is offline
Registered User
  
 

Join Date: Apr 2007
Posts: 149
###man touch
  #3 (permalink)  
Old 08-10-2007
qaid786 qaid786 is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 5
You can copy the file to the backup folder and then delete the original file
or
Move the touch the file before moving it to the backup folder
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 02:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0