I use Java5 and I don't want to point each .jar file in Classpath so I've tried to write small shell script:
find $LIB_DIR -name '*.jar' -print > /tmp/classpath
CP=
cat /tmp/classpath | while read line
do
CP=$CP:$line
done
rm -f /tmp/classpath
But this is not work - $CP variable is empty.
As a result $CP should be single string with pathes delimited by ':'
Is anyone knows what is wrong here and how to correctly concatenate all file's lines to one string?