unix scripts

From: janet (jowens_at_wehco.com)
Date: 08/01/03


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?



Relevant Pages

  • Re: Batch or VBScript command needed
    ... If you just want to see their OU path casually, like not needing it in a ... script or something, you can see that by default in dsa. ... I forget the command used to obtain this information. ...
    (microsoft.public.windows.server.scripting)
  • Re: Need help creating a script to move multiple files
    ... Sorry for being ignorant on this, but what are the -e and -a doing in ... >> I am needing to create a script that checks a directory to see if ... >Does anyone have a more precise specification of what they want? ...
    (comp.unix.programmer)
  • Need help creating a script to move multiple files
    ... I am needing to create a script that checks a directory to see if ... meaning I can't use a wild card to count the files. ...
    (comp.unix.programmer)
  • Scripting cube role via XMLA or AMO?
    ... I am needing the ability to create roles with dimensional ... security inside of a cube. ... But my issue is if I try to script out an ... I see if I browse the cube definition file, ...
    (microsoft.public.sqlserver.olap)
  • Re: Counting the files in a directory....
    ... due to their size and the relative rarity of us ... needing to pull something out of it. ... Or is this script not invoked regularly? ...
    (comp.lang.ruby)