unix scripts
From: janet (jowens_at_wehco.com)
Date: 08/01/03
- Next message: scriptOmatic: "Re: unix scripts"
- Previous message: Andrew Gierth: "Unix Programming FAQ (v1.37)"
- Next in thread: scriptOmatic: "Re: unix scripts"
- Reply: scriptOmatic: "Re: unix scripts"
- Reply: Chris F.A. Johnson: "Re: unix scripts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 1 Aug 2003 12:28:44 -0700
Can someone tell me where I could find some good information on
scripting or give me some guidance? I am needing to write a script to
move certain files to a different location based on when they were
created. For example a certain set of files that were created in July
could be moved to a directory called July (or some directory name that
would identify them as files created in July)created by the script.
This would be done on the last day of the month, in this case July 31.
If I know how to get the month of the files, I can create the
directory and move the files into the directory. Once I know the
script is working I would want to set it up in cron as a nightly
process.
Also to clean out old files, for example I have a directory called
July or whatever and we are in October. I don't want to keep files
more than 2 months. So I would need to check for the current month
and check to see if there is anything older than 2 months then I want
to remove contents of directory and directory.
Can anyone help or tell me where I can get help?
- Next message: scriptOmatic: "Re: unix scripts"
- Previous message: Andrew Gierth: "Unix Programming FAQ (v1.37)"
- Next in thread: scriptOmatic: "Re: unix scripts"
- Reply: scriptOmatic: "Re: unix scripts"
- Reply: Chris F.A. Johnson: "Re: unix scripts"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|