data-munging.md
... ...
@@ -1,3 +1,11 @@
1 1
<!-- TITLE: Data Munging -->
2 2
<!-- SUBTITLE: When all you have is a hammer -->
3 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