Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] The Mother of All (bash) Commands
- Date: Wed, 19 Mar 2008 17:19:59 +0900
- From: "Stephen J. Turnbull" <stephen@example.com>
- Subject: Re: [tlug] The Mother of All (bash) Commands
- References: <op.t756gdbtp3esx5@mail.gol.com> <200803180822.19747.daniel.ramaley@drake.edu> <20080318155544.79e7efac.attila@kinali.ch> <200803181314.01992.daniel.ramaley@drake.edu> <78d7dd350803181916w70c71d9bp52c0505584bf829f@mail.gmail.com> <d8fcc0800803181938s73c902d8s6b650c511e59d41b@mail.gmail.com> <78d7dd350803190003u3d170808x63042c4980a5f6bf@mail.gmail.com>
Nguyen Vu Hung writes: > 2008/3/19, Josh Glover <jmglov@example.com>: > > So his point is that when *not* using GNU coreutils, ls(1) has very > > few useful options. > To make the world utopia, the first thing when I get an Unix account is > installing latest GNU bash and coreutils. > > Btw, in coreutils, true --help and true --version do show somethings. > Btw, what is the proper way to zero a file? #!/usr/bin/env /bin/zsh cat >temp.c <<EOT int main (int argc, char *argv[]) { int fd = open (argv[1],O_TRUNC,"w"); close (fd); exit (0); } EOT $CC temp.c if ./a.out ${1:-/bin/bash}; then echo "Happy St. Patty's!"; fi rm -f temp.c temp.o a.out This is especially useful when called with no arguments. :-)
- References:
- [tlug] The Mother of All (bash) Commands
- From: Greg Thomson
- Re: [tlug] The Mother of All (bash) Commands
- From: Daniel A. Ramaley
- Re: [tlug] The Mother of All (bash) Commands
- From: Attila Kinali
- Re: [tlug] The Mother of All (bash) Commands
- From: Daniel A. Ramaley
- Re: [tlug] The Mother of All (bash) Commands
- From: Nguyen Vu Hung
- Re: [tlug] The Mother of All (bash) Commands
- From: Josh Glover
- Re: [tlug] The Mother of All (bash) Commands
- From: Nguyen Vu Hung
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Who is www-data, and why do they want my CPU?
- Next by Date: Re: [tlug] The Mother of All (bash) Commands
- Previous by thread: Re: [tlug] The Mother of All (bash) Commands
- Next by thread: Re: [tlug] The Mother of All (bash) Commands
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links