in reply to Re^4: UNIX command - remove 0 byte file
in thread UNIX command - remove 0 byte file

Note also the use of -print0 and -0, that eliminates problems with filenames containing whitespace.
I think that those are Linux-only features as well. I sure like them when I can use them, though. :)

thor

Feel the white light, the light within
Be your own disciple, fan the sparks of will
For all of us waiting, your kingdom will come

  • Comment on Re^5: UNIX command - remove 0 byte file

Replies are listed 'Best First'.
Re^6: UNIX command - remove 0 byte file
by Anonymous Monk on Sep 23, 2005 at 13:46 UTC
    Actually, they are not Linux-only feature. At worst, they are GNU-only features, and the GNU file/shell utilities happely run on all commonly used Unix platforms. And they work on Windows as well.
      You're right, of course. However, often you won't get GNU utils on a system where the vendor packaged versions of those same utils work just fine.

      thor

      Feel the white light, the light within
      Be your own disciple, fan the sparks of will
      For all of us waiting, your kingdom will come

        So, install it? One installs Perl modules as well. I've set up, and encountered on other peoples boxes a /usr/local/gnu (or something similar) many times. Because you want that GNU extension often enough to have the commonly used tools always available.