(Fwd) Re:Bash Programming

Taavi Burns taavi-LbuTpDkqzNzXI80/IeQp7B2eb7JE58TQ at public.gmane.org
Fri Aug 20 14:28:27 UTC 2004


On Fri, Aug 20, 2004 at 10:15:37AM -0400, Lennart Sorensen wrote:
> On Fri, Aug 20, 2004 at 09:54:42AM -0400, Tim Writer wrote:
> >     #!/bin/cat
> > 
> > running "./script.sh" is equivalent to:
> > 
> >     /bin/cat ./script.sh
> 
> Hmm, self displaying files that must start with a specific line.  Not
> sure that's so useful :)  How about /usr/bin/less.  Self paging files.

It's certainly the easiest way to write a program that prints out its own
source code. :)

-- 
taa
/*eof*/
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list