Last active
July 10, 2020 22:11
-
-
Save mommi84/9f71e1d97a09ffbb3bb7d79a1418fce6 to your computer and use it in GitHub Desktop.
NTriples to TSV without literals.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
ntriples=$1 | |
tsv=$2 | |
sed -n $'s/^<\([^ ]*\)> <\([^ ]*\)> <\([^ ]*\)> \.$/\\1\t\\2\t\\3/p' $ntriples > $tsv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment