[K12OSN] Way OT: scripting help

Dimitri Yioulos dyioulos at firstbhph.com
Thu May 24 17:37:59 UTC 2007


On Thursday 24 May 2007 12:33 pm, Dan Young wrote:
> Dimitri Yioulos wrote:
> > Hearty thanks to you, Dan, and Huck for your responses.  Looks like your
> > suggestions will work fine.  And thanks for the detailed explanation -
> > very, very helpful.
> >
> > OK, now to perhaps earn your scorn and enmity by asking one last question
> > (no, really):  If I want to delete all files older than 1 day EXCEPT
> > "somefile", what might I do to:
> >
> > find $WORKDIR -maxdepth 1 -mtime +$DAYSOLD -exec rm {} \;
>
> find $WORKDIR -maxdepth 1 -mtime +$DAYSOLD ! -name somefile -exec rm \
> {} \;
>
> --
> Dan Young <dyoung at mesd.k12.or.us>
> Multnomah ESD - Technology Services
> 503-257-1562
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>


Thank you, thank you, thank you!

Dimitri

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the K12OSN mailing list