~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cp sar20 sar20_new
AM 01-11
for string in AM
do
for i in $(seq -w 01 11)
do
sed -i -r "s/^${i}(\:[0-9]+\:[0-9]+) ${string}/${i}\1 /" sar20_new
done
done
AM 12
for string in AM
do
for i in 12
do
sed -i -r "s/^${i}(\:[0-9]+\:[0-9]+) ${string}/00\1 /" sar20_new
done
done
PM 01-11
for string in PM
do
for i in $(seq -w 01 11)
do
j=$(expr $i + 12)
sed -i -r "s/^${i}(\:[0-9]+\:[0-9]+) ${string}/${j}\1 /" sar20_new
done
done
PM 12
for string in PM
do
for i in 12
do
sed -i -r "s/^${i}(\:[0-9]+\:[0-9]+) ${string}/12\1 /" sar20_new
done
done
java -jar /home/g.cecchi/kSar-5.0.6/kSar.jar
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
And then load from text file sar20_new
I correctly see the graphs.
I need yet to crosscheck better if text values match the graph but a preliminary check seems ok.
So we can check OS version and depending on it we can provide a pre-transformed temporary file and have the jar work on it instead that on the original one...
Can anyone check and let me know if it works for him/her too?
Gianluca
5