-
awk and the data manipulationComputer/linux 2008. 8. 22. 00:47histogram.dat has the following structure:
I want to change "histogram.dat" to the below 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 11awk '{print $1, $3 ; print $2, $3}' histogram.dat > histogram2.dat-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'Computer > linux' 카테고리의 다른 글
Guest Virtualbox, network Printer Setting (0) 2008.10.27 Make a secure PC with sshd and ufw (0) 2008.08.20 declaration of ‘array’ as multidimensional array must have bounds for all dimensions except the first (0) 2008.08.19