[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Way OT: scripting help

On Thursday 24 May 2007 2:13 pm, Dan Young wrote:
> Dimitri Yioulos wrote:
> > I'm still grateful, but that construct didn't work upon test.  The error
> > msg is "Usage: find [path...] [expression]".  I tried putting the new
> > code in various places in my original line, but no joy.  Any idea why I'm
> > getting the error?
> I added a backslash to escape the newline so it would wrap in my mail.
> Can you try putting the whole thing on one line? I shorted some names to
> make it fit here:
> find $WORK -maxdepth 1 -mtime +$DAYS ! -name file -exec rm {} \;
> And test with non-critical data, of course.
> --
> Dan Young <dyoung mesd k12 or us>
> Multnomah ESD - Technology Services
> 503-257-1562
> _______________________________________________
> K12OSN mailing list
> K12OSN redhat com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>

Yeesh, I should have seen the escape \.  Now script works just fine.  Thanks 
so much for your help and patience!


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

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]