Hi everyone!
I have encountered a problem:
I have "while" loop; at each run a set of outputs is produced but then I need to shift them into a corresponding folder ; otherwise next run the new outputs will be over-written. Furthermore, I need to pipe what I have on the screen inside a file.
I have put my code in the following:
Code:
# !/bin/bash
jf="GeoQuery.jar"
fmt="event geo:"
while read -r ID
do
echo $ID //read the event number from a text file to produce output//
java -jar $jf -$fmt$ID // java client give back the output based on the ID. now I need to create a folder using $ID and put the output there ????? [NEED HELP WITH IT]
done < <(paste cupid.txt)
your help is much appreciated.
Sepi