Monday, July 24, 2017

gnuplot

sshpass  -pPASSWORD scp -rP44444 -o StrictHostKeyChecking=no   USER@IPADDRESS:/DATA /tmp/.Z3
awk '{print $3}'  /tmp/.Z3 > /tmp/.Z1
echo '#!/usr/bin/gnuplot -persist' > /tmp/.Z2
# smooth {unique | frequency | csplines | acsplines | bezier | sbezier}
echo 'plot "/tmp/.Z1" with lines smooth bezier' >> /tmp/.Z2
chmod 0777 /tmp/.Z*
/tmp/.Z2
wc /tmp/.Z1
tail -n1 /tmp/.Z3
#rm -rf /tmp/.Z* #no need, according to the 2nd line
cat /tmp/.Z3

No comments:

Post a Comment