bug-bash
[Top][All Lists]
Advanced

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

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


From: Matthew_S
Subject: Re: Taking input line by line from a config file in Bash
Date: Thu, 3 Jan 2008 00:56:36 -0800 (PST)

I see what you're saying.  That's interesting about cat, thanks for the heads
up.

while read line
        do
                {
                echo
                $line > /dev/null && echo $line "PASSED" || echo $line
"FAILED"
                } >> $RESULTS
        done < $FILE
exit 0

This does the same thing, but seems to be more streamline... cleaner.  Those
are some useful points for future reference.  Thanks again.

Matthew
-- 
View this message in context: 
http://www.nabble.com/Taking-input-line-by-line-from-a-config-file-in-Bash-tp14575394p14593790.html
Sent from the Gnu - Bash mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]