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

Re: [K12OSN] Way OT: scripting help



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


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