awk
-
awk with a running average and sample deviationComputer/linux 2010. 8. 18. 01:02
# License : http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en # Author: Jeong Han Lee # email : jeonghan 'dot' lee 'at' gmail 'dot' com # Date: Thursday, August 19 10:39:49 EDT 2010 # Version: 0.0.1 # # This script can calculate a running mean, a sample deviation # , and a standard deviation from xterm output. # # History: # 0.0.1 Thursday, August 19 10:41:44 EDT 2010 # # # How to use......
-
awk and the data manipulationComputer/linux 2008. 8. 22. 00:47
histogram.dat has the following structure: -100 -99 7 -99 -98 8 -98 -97 11 -97 -96 10 -96 -95 4 -95 -94 6 -94 -93 11 -93 -92 13 -92 -91 11 I want to change "histogram.dat" to the below structure: -100 7 -99 7 -99 8 -98 8 -98 11 -97 11 -97 10 -96 10 -96 4 -95 4 -95 6 -94 6 -94 11 -93 11 -93 13 -92 13 -92 11 awk '{print $1, $3 ; print $2, $3}' histogram.dat > histogram2.dat