Re: A simple bash case question...

2008-09-02 Thread Armin
On Tuesday 02 September 2008 14:40:10 Dan Thurman wrote: > I am trying to figure out how to do the following: > > case $foo in > > "one" || "two) >process_One_Two ;; > "three") >process_Three ;; > "four" || "five") >process_Four_Five ;; > *) echo "Nothing to

Re: A simple bash case question...

2008-09-02 Thread Dave Ihnat
On Tue, Sep 02, 2008 at 10:40:10AM -0700, Dan Thurman wrote: > I am trying to figure out how to do the following: > ... > Any advice? Get rid of the ||, just use |. -- Dave Ihnat President, DMINET Consulting, Inc. [EMAIL PROTECTED] -- fedora-list mailing list fedora-list@

Re: A simple bash case question...

2008-09-02 Thread Dan Thurman
Dave Ihnat wrote: On Tue, Sep 02, 2008 at 10:40:10AM -0700, Dan Thurman wrote: > I am trying to figure out how to do the following: > ... > Any advice? Get rid of the ||, just use |. Yup! That worked! Thanks! Dan -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: https://ww

A simple bash case question...

2008-09-02 Thread Dan Thurman
I am trying to figure out how to do the following: case $foo in "one" || "two) process_One_Two ;; "three") process_Three ;; "four" || "five") process_Four_Five ;; *) echo "Nothing to process" ;; esac The problem I am having is getting "one" || "Two" or "four" || "