If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > Recycle Folder Names

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-21-04, 14:27
pranav610 pranav610 is offline
Registered User
 
Join Date: Jan 2004
Posts: 25
Recycle Folder Names

I have a cron job that runs evrery day to back up files. Script it runs creates a folder with system date ie. Cron runs today April 21, 2004 folder name will be "BackupFor04212004".

I need a bash script that will recycle these folder names so that at any given time, there are only 7 folders.

Thank You.
Reply With Quote
  #2 (permalink)  
Old 04-21-04, 17:34
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: Recycle Folder Names

Quote:
Originally posted by pranav610
I have a cron job that runs evrery day to back up files. Script it runs creates a folder with system date ie. Cron runs today April 21, 2004 folder name will be "BackupFor04212004".

I need a bash script that will recycle these folder names so that at any given time, there are only 7 folders.

Thank You.
"man date" that will give you the answer
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On