cat quads.nq | sed -e “s/^\(\S\+\)\s\+\(\S\+\)\s\+\(.*\)\s\+\(\S\+\)\s\+\./\1 \2 \3 ./” > triples.nt
Someone with regex and sed (or awk) foo may well be able to improve on this.
cat quads.nq | sed -e “s/^\(\S\+\)\s\+\(\S\+\)\s\+\(.*\)\s\+\(\S\+\)\s\+\./\1 \2 \3 ./” > triples.nt
Someone with regex and sed (or awk) foo may well be able to improve on this.