[PLUG] One-liners to empty all files in a directory?

wes plug at the-wes.com
Tue Aug 16 00:06:25 UTC 2011


On Mon, Aug 15, 2011 at 4:51 PM, Galen Seitz <galens at seitzassoc.com> wrote:

> wes wrote:
> > yeah, I can't get that to work either. not sure why. so then my solution
> > would be:
> >
> > touch blankfile; find -type f -exec cp blankfile {} \;
>
> Doesn't that count as UUOT?  Why not use /dev/null?
>
>
I didn't think that would work. I just tested, and it does. So there's no
reason not to.

-wes



More information about the PLUG mailing list