Martin Bukowski commited on
Upload one_liner.sh with huggingface_hub
Browse files- one_liner.sh +7 -0
one_liner.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
|
| 3 |
+
# try one
|
| 4 |
+
#sed 's/ *||| */\t/' raw.txt > processed.tsv
|
| 5 |
+
|
| 6 |
+
# try two - there were a few entries with multiple ||| delimiters, so we skip them
|
| 7 |
+
grep -Ev '(\|\|\|).*?\|\|\|' raw.txt | sed 's/ *||| */\t/' > processed.tsv
|