Skip to content

Instantly share code, notes, and snippets.

@mommi84
Last active July 10, 2020 22:11
Show Gist options
  • Save mommi84/9f71e1d97a09ffbb3bb7d79a1418fce6 to your computer and use it in GitHub Desktop.
Save mommi84/9f71e1d97a09ffbb3bb7d79a1418fce6 to your computer and use it in GitHub Desktop.
NTriples to TSV without literals.
#!/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