in reply to Re: UNIX command - remove 0 byte file
in thread UNIX command - remove 0 byte file
Methinks you have an operator precedence bug here. On second thoughts, what you have is pseudocode (unless you intended it to be a perl 6 style junction :). Should be:
foreach(glob('*.*')) { unlink if (-f $_) && !-s _; }
--
Oh Lord, won’t you burn me a Knoppix CD ?
My friends all rate Windows, I must disagree.
Your powers of persuasion will set them all free,
So oh Lord, won’t you burn me a Knoppix CD ?
(Missquoting Janis Joplin)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: UNIX command - remove 0 byte file
by VSarkiss (Monsignor) on Sep 23, 2005 at 14:15 UTC |