Re: Taking input line by line from a config file in Bash

2008-01-02 Thread Bob Proulx
Matthew_S wrote: > With the 'while read line', it appears that I don't need to keep track of > the line numbers. In fact this below does exactly what I need it to do; Good. > cat $File | # Supply input from a file Search the web for "useless use of cat". Your use of it here is useless. But

Bash-3.2 Official Patch 33

2008-01-02 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 3.2 Patch-ID: bash32-033 Bug-Reported-by:Christophe Martin <[EMAIL PROTECTED]> Bug-Reference-ID: <[EMAIL PROTECTED]> Bug-Reference-URL: http://lists.gnu.org/archive/html

Bash-3.2 Official Patch 32

2008-01-02 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 3.2 Patch-ID: bash32-032 Bug-Reported-by:Uwe Doering <[EMAIL PROTECTED]> Bug-Reference-ID: <[EMAIL PROTECTED]> Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-b

Bash-3.2 Official Patch 31

2008-01-02 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 3.2 Patch-ID: bash32-031 Bug-Reported-by:Miroslav Lichvar <[EMAIL PROTECTED]> Bug-Reference-ID: Fri, 02 Nov 2007 14:07:45 +0100 Bug-Reference-URL: http://lists.gnu.org/a

Bash-3.2 Official Patch 30

2008-01-02 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 3.2 Patch-ID: bash32-030 Bug-Reported-by:Paul Eggert <[EMAIL PROTECTED]> Andreas Schwab <[EMAIL PROTECTED]> Bug-Reference-ID: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Bug-Refe

Bash-3.2 Official Patch 29

2008-01-02 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 3.2 Patch-ID: bash32-029 Bug-Reported-by:Tomas Janousek <[EMAIL PROTECTED]> Bug-Reference-ID: <[EMAIL PROTECTED]> Bug-Reference-URL: https://bugzilla.redhat.com/show_bug.

Bash-3.2 Official Patch 28

2008-01-02 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 3.2 Patch-ID: bash32-028 Bug-Reported-by:dAniel hAhler <[EMAIL PROTECTED]> Bug-Reference-ID: Bug-Reference-URL: Bug-Description: Under some circumstances, readline will incorrectl

Bash-3.2 Official Patch 27

2008-01-02 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 3.2 Patch-ID: bash32-027 Bug-Reported-by:dAniel hAhler <[EMAIL PROTECTED]> Bug-Reference-ID: <[EMAIL PROTECTED]> Bug-Reference-URL: https://bugs.launchpad.net/ubuntu/+so

Bash-3.2 Official Patch 26

2008-01-02 Thread Chet Ramey
BASH PATCH REPORT = Bash-Release: 3.2 Patch-ID: bash32-026 Bug-Reported-by:Chet Ramey <[EMAIL PROTECTED]> Bug-Reference-ID: Bug-Reference-URL: Bug-Description: This keeps the Apple linker from attempting to link b

Re: Taking input line by line from a config file in Bash

2008-01-02 Thread Matthew_S
Hi Bob, Thanks for the quick reply. With the 'while read line', it appears that I don't need to keep track of the line numbers. In fact this below does exactly what I need it to do; cat $File | # Supply input from a file while read line # As you suggested... do echo $line

Re: Taking input line by line from a config file in Bash

2008-01-02 Thread Bob Proulx
Matthew_S wrote: > For arguments sake I’ve put ‘I want this whole line on one line’ into the > config file and the script looks like this; > > for i in `cat config.txt` The result of this will be split on words. That is not what you want. > It’s been suggested that I try read and so I have this

Taking input line by line from a config file in Bash

2008-01-02 Thread Matthew_S
Hi all and firstly… Happy New Year! It wouldn’t be a New Year without a New Problem though ;-) I’m trying to create a script that will take the input of a config file line by line. Unfortunately, what seems to be happening is that it is taking it though word by word instead? For arguments sake