commit 1c2386402a9fccd65ff1e9ffe2dc254e7057c1e4
parent 8377ad9e09dbff255f6797a9b7b603455570a8f9
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Fri, 4 Apr 2014 21:55:20 +0200
+script
Diffstat:
1 file changed, 24 insertions(+), 0 deletions(-)
diff --git a/training/awkscript b/training/awkscript
@@ -0,0 +1,24 @@
+: 1396641020:0;cat out2 | awk '{print $1, $2-(($4-1)/2), $3-(($4-1)/2), $4}' > out3
+: 1396641022:0;l
+: 1396641025:0;rm out3
+: 1396641027:0;cd ..
+: 1396641028:0;cat out2 | awk '{print $1, $2-(($4-1)/2), $3-(($4-1)/2), $4}' > out3
+: 1396641031:0;head out2
+: 1396641038:0;grep -v '1$' out2 | head
+: 1396641041:0;grep -v '1$' out3 | head
+: 1396641052:0;cat out2 | awk '{print $1, $2+(($4-1)/2), $3+(($4-1)/2), $4}' > out3
+: 1396641053:0;grep -v '1$' out3 | head
+: 1396641085:0;cat out2 | awk '{print $1, $2+(($4-1)/2), $3+(($4-1)/2), ($4-1)/2}' > out3
+: 1396641086:0;grep -v '1$' out3 | head
+: 1396641101:0;less out2
+: 1396641106:0;tail out2
+: 1396641107:0;tail out3
+: 1396641187:0;less out3
+: 1396641193:0;wc -l out3 > taille
+: 1396641196:0;cat taille out3 > out4
+: 1396641198:0;less out4
+: 1396641201:0;vi out4
+: 1396641216:0;less out4
+: 1396641259:0;cat out4 | awk '{print $1, $3, $2, $4}' > out5
+: 1396641264:0;less out5
+: 1396641305:0;vi ~/.history