[ale] bash scripting question
Kevin Krumwiede
kjkrum at comcast.net
Thu Sep 11 19:59:24 EDT 2003
On 11 Sep 2003 08:45:09 -0400
Fletch <fletch at phydeaux.org> wrote:
> if perl -e 'exit(grep(-e,glob(shift))?0:1)' '*.foo' ; then
> echo "*.foo exists"
> else
> echo "no *.foo"
> fi
Er... yeah. I understood all of that. :o)
I went with Geoffrey's for loop idea, it fit nicely with what I was trying to do:
CLASSPATH=$HOME/java:.
for jar in $HOME/java/lib/*.jar; do
if [ -f "$jar" ]; then
CLASSPATH=$jar:$CLASSPATH;
fi
done
export CLASSPATH
Thanks to all for the suggestions.
Krum
More information about the Ale
mailing list