I want to build a basic Java class path in a bash script.
This command works out all the jar files to go in my path:
find ~/jars | grep \.jar$
This lists all the jar files I want on my path, one per line.
How can I join together these lines so they are on one line, separated by :
and put that into a variable I can use in my script when I invoke Java?
E.g.:
JARS=`find ~/jars | grep \.jar$`
#### somehow make JARS into one line with : between entries
java -cp $JARS ...