[SLL] Linux Roulette:
Scott Blachowicz
scott.ssc at sabami.seaslug.org
Thu Feb 14 11:28:35 PST 2008
On Thu, Feb 14, 2008 at 10:39:09AM -0800, Glenn Stone wrote:
> On Thu, Feb 14, 2008 at 10:31:29AM -0800, Xeno Campanoli wrote:
> >!rm
>
> Took me a second to get that one. Yeah, that's shooting blind, for sure...
>
> Although one could say
>
> !rm:p
>
> to make sure...
>
Or how about this in a "cleanup" script:
cd / tmp
find . -mtime +30 -print0 | xargs -0 rm
I did something close to that (once) in a cleanup script on an HP-UX system
almost 20 years ago now...
Scott
PS: Notice the space between the "/" and the "tmp" -- it cd's to "/"...
More information about the linux-list
mailing list