![]() |
On Fri, Apr 18, 2008 at 2:47 PM, Aidan Van Dyk <aidan@xxxxxxxx> wrote: > Of course, the match expressions can be changed as easily as the shell > script line. > > It seemed like you had been caught by IFS. And if you're trying to > include that snippet in a larger script, IFS will catch you again. > > If you want to avoid the IFS change affecting more than just the read, > you can use it like this: > while IFS="" read l > do > case "$l" in > "completely suppress this line") ;; > "A line to blank out") echo "" ;; > "---------------------") echo "" ;; > *) echo "$l" ;; > esac > done > it isn't, but that's a nice tip and certainly cleaner than what i have right now ____________________ HylaFAX(tm) Users Mailing List _______________________ To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*