![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
| Find and store files based on FileName and Modified Time | edisonantus | UNIX for Advanced & Expert Users | 2 | 02-19-2008 02:25 PM |
| find formatted filename with date time | dpath2o | UNIX for Advanced & Expert Users | 6 | 02-05-2008 11:20 PM |
| Sort files by Date-timestamps available in filename & pick the sortedfiles one by one | Chindhu | Shell Programming and Scripting | 4 | 08-10-2007 07:54 AM |
| Insert date/time within a filename | cooperman | UNIX for Dummies Questions & Answers | 7 | 11-07-2005 12:29 PM |
| renaming a compressed file to filename without .Z | bruceps | UNIX for Dummies Questions & Answers | 8 | 08-16-2005 02:32 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Renaming files to have date/time in filename
I have a program that will export my data to a single file, but it assigns a file name that is overridden every time I run the program. I need to change the file name to have a sequential number in the filename.
How do I rename a file so that the filename contains the system date and time. I want to run this in a script and then get crontab to execute the script. Any one got any ideas if and how this can be done. I am running Sco OpenServer 5.0.7 |
|
|||||
|
Alternatively you could run a script in your cron right after your file is created
and in that script you could rename the file to a name you would like to have so that the program you run does not overwrite the file each time it runs. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|