new file: awk.mdwn
authorPhilip Durbin <philipdurbin@gmail.com>
Tue, 3 Jul 2012 18:45:29 +0000 (14:45 -0400)
committerPhilip Durbin <philipdurbin@gmail.com>
Tue, 3 Jul 2012 18:45:29 +0000 (14:45 -0400)
awk.mdwn [new file with mode: 0644]

diff --git a/awk.mdwn b/awk.mdwn
new file mode 100644 (file)
index 0000000..ab0dea2
--- /dev/null
+++ b/awk.mdwn
@@ -0,0 +1,4 @@
+reordering and reformatting tab separated output:
+
+    [pdurbin@beamish ~]$ echo -e "foo\tbar\tbaz" | awk -F'[\t]'  '{printf("%s %s (%s)\n",$2, $3, $1)}'
+    bar baz (foo)