Query Regarding bash script

hi.joshi_at_gmail.com
Date: 01/18/05


Date: 17 Jan 2005 16:03:14 -0800

Hi.. I'm trying to write a bash script.
I basically have folders in the following format
YYYYMMDD
so.. 20050111
20041220
etc...

Have been trying to write a script that basically lets me remove all
the folders.... up until the last 7 days..

i.e. I want to keep the folders for the last 7 days (including
today)... but delete all the ones before that

Would appreciate if someone could shed light on this (not as yet)
script..

Thanks,



Relevant Pages

  • Re: CLean out all users Temp Dir Folder
    ... I've built the script you need with ScriptAhead a tool we have just ... ' Get Folders that match the following criteria: ... Sub AppendCollectionToArray ... GetSubFolders strFolderName ...
    (microsoft.public.windows.server.scripting)
  • RE: Deleting 1 folder across multiple Mailboxes
    ... I too am looking to delete about 30 folders that came over from a linux ... are over 200 mailboxes that is a whole lot of click delete click delete. ... I found this script, but it seems to only work on Exchange 2000. ... Dim objCommand, objConnection, strBase, strFilter, strAttributes ...
    (microsoft.public.exchange.admin)
  • Re: Need help for a new scripter
    ... been tasked with comming up with a script that will allow me to move ... folders from the profile into it. ... Dim sUserProfile, sBUPath ... sPath & "\quicklaunch", OverWriteFiles ...
    (microsoft.public.scripting.vbscript)
  • Re: Script for Folder View Customization - Beta
    ... but vbcsript's capabilities are equal to or better than our ... Should be no problem for folders such as "c:\docs & ... the file system object, SAPI.SpFileStream, SAPI.Voice, etc. ... I also wrote a script that recurses a folder hierarchy and calls SAPI5 ...
    (microsoft.public.scripting.vbscript)
  • Re: Deny _WRITE_ access to a file
    ... First of all, regarding LOGON SCRIPT, the mistake is mine: ... and folders they don't ... "Everyone", so even if "RestrictedG" has only READ acces, as they are ...
    (microsoft.public.windows.server.security)