compute/data-munging.md
... ...
@@ -14,4 +14,10 @@ Work with human-readable e.g. disk ^2 sizes:
14 14
`numfmt --from=iec` and `numfmt --to=iec`
15 15
16 16
Search Oracle lobs for strings:
17
-`select whatever from atable where (dbms_lob.instr(lob_column,utl_raw.cast_to_raw('text_to_look_for')) > 0)`
... ...
\ No newline at end of file
0
+`select whatever from atable where (dbms_lob.instr(lob_column,utl_raw.cast_to_raw('text_to_look_for')) > 0)`
1
+
2
+FPAT dirty quoted CSV awk:
3
+``BEGIN {
4
+ FPAT = "([^,]+)|(\"[^\"]+\")"
5
+}```
6
+(doesn't handle newlines in quotes or escaped quotes though)
... ...
\ No newline at end of file