-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Pádraig Brady on 12/30/2008 2:46 AM:
>> Usage: truncate [OPTION]... [FILE]...
> 
> Is supporting stdin a useful enhancement?
> Maybe if you can get the shell to open
> different files based on some condition,
> though again that seems a little contrived.

if cond ; then
  foo=file1
else
  foo=file2
fi
truncate -s0 <$foo

- --
Don't work too hard, make some time for fun as well!

Eric Blake             e...@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAklaG2IACgkQ84KuGfSFAYBkhwCgkVAbg/b5mkkbNlembiDzpgeA
tdUAoL6Kzb/4DqubvAOFgABV1RdeI1w3
=mkaW
-----END PGP SIGNATURE-----


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to