#!/bin/bash # routine to read the loops from rawLoopsOut.txt and place into # 1. Place each loop in its own file named: ssloop1, ssloop2...etc # 2. All loops in file ssloopAll.txt with shifted loops on X axis echo "#\~/Tools/massage1 script starts..." echo "#If you wish to change CALIBRATIONs or Loop SHIFT magnitudes edit file:" echo "# massage.env" echo "#Erasing(start in 5 sec.) all previous loops with command: rm ssloop*" sleep 5 #give the user a chance to ctrl c rm ssloop* echo "#Done." # Ensure that rawLoopOut.txt is closed properly #echo >>rawLoopOut.txt #may occur before all loops are written. #echo "#END= 0" >>rawLoopOut.txt echo "#Creating individual loop files for plotting..." ~/Tools/massage2 ssloopAll.txt echo "#Done." echo "#" echo "# You can now plot all loops using the command:" echo "# gnuplot> plot \"ssloopAll.txt\" u 1:2 " echo "# or single loops using:" echo "# gnuplot> plot \"ssloopX\" u 1:2 " echo "# where X is loop no." echo "#"