Re: bash shell script questions

1998-01-11 Thread Rob S. Wolfram
David Stern wrote: [snip] > > You should use '#!/bin/bash' really, because now sh is just a link > > to bash, but you are not guaranteed that in a future version it will > > be another shell, or that bash _will_ act more (dumb) Bourne like in > > the future when called as 'sh' (I for one would app

Re: bash shell script questions

1998-01-10 Thread David Stern
On Fri, 09 Jan 1998 23:01:54 +0100, "Rob S. Wolfram" wrote: > David Stern wrote: >>[..] > news://comp.unix.shell I know now. > > 1.) How do I insert a newline character in a "double-quoted" string? > If you mean "when using bash's built-in echo command", use > echo -e "Test\nMoreText" I'll use

Re: bash shell script questions

1998-01-10 Thread Rob S. Wolfram
David Stern wrote: > I know this isn't a bash shell script news group, but the fact is I > can't find one. Since bash is the default linux shell, I was hoping news://comp.unix.shell > someone could answer a few pretty simple questions. > > 1.) How do I insert a newline character in a "double-

Re: bash shell script questions

1998-01-08 Thread David Stern
On Wed, 07 Jan 1998 21:27:01 +1030, John Spence wrote: > > I know this isn't a bash shell script news group, but the fact is I > > can't find one. Since bash is the default linux shell, I was hoping > > someone could answer a few pretty simple questions. > > Hi David. > > Try this link for an

Re: bash shell script questions

1998-01-07 Thread bhmit1
On Tue, 6 Jan 1998, David Stern wrote: > Hi, > > I know this isn't a bash shell script news group, but the fact is I > can't find one. Since bash is the default linux shell, I was hoping > someone could answer a few pretty simple questions. > > 1.) How do I insert a newline character in a "do

Re: bash shell script questions

1998-01-07 Thread John Spence
> I know this isn't a bash shell script news group, but the fact is I > can't find one. Since bash is the default linux shell, I was hoping > someone could answer a few pretty simple questions. Hi David. Try this link for an intro to Bourne shell scripts. http://riceinfo.rice.edu/Computer/Doc

bash shell script questions

1998-01-07 Thread David Stern
Hi, I know this isn't a bash shell script news group, but the fact is I can't find one. Since bash is the default linux shell, I was hoping someone could answer a few pretty simple questions. 1.) How do I insert a newline character in a "double-quoted" string? 2.) What is a good method to rea