compute/data-munging.md
... ...
@@ -0,0 +1,11 @@
1
+<!-- TITLE: Data Munging -->
2
+<!-- SUBTITLE: When all you have is a hammer -->
3
+
4
+Double-space a file:
5
+`sed -G`
6
+
7
+Add a newline after every two lines:
8
+`sed '0~2 s/$/\n/'`
9
+
10
+Replace newlines with arbitrary text:
11
+`awk '{ print }' RS='\n' ORS='arbitrary_text'`
... ...
\ No newline at end of file
data-munging.md
... ...
@@ -1,11 +0,0 @@
1
-<!-- TITLE: Data Munging -->
2
-<!-- SUBTITLE: When all you have is a hammer -->
3
-
4
-Double-space a file:
5
-`sed -G`
6
-
7
-Add a newline after every two lines:
8
-`sed '0~2 s/$/\n/'`
9
-
10
-Replace newlines with arbitrary text:
11
-`awk '{ print }' RS='\n' ORS='arbitrary_text'`
... ...
\ No newline at end of file