Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] The Mother of All (bash) Commands



On 3/18/08, Nguyen Vu Hung <vuhung16plus+shape@example.com> wrote:
>  Btw, in coreutils, true --help and true --version do show somethings.

Yes, that was my point and it is ludicrous, but whatever.

>  Btw, what is the proper way to zero a file?
>
>  true > file or
>  echo "" > file or
>  cat /dev/null > file

A simple `> file' will suffice.

Your second example would create a byte file with a linefeed in it, btw.

-sb


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links