Strabon

view printNTriples @ 181:439c5e28e3bc

merge
author George Garbis <ggarbis@di.uoa.gr>
date Tue May 22 12:18:22 2012 +0300 (2012-05-22)
parents
children
line source
1 #! /bin/bash
3 input=$1
5 if [ "$input" == "" ]; then
6 echo "give database name"
7 exit -1
8 fi
10 fgrep '[s=' $input \
11 | sed 's/\[s=\(.*\);o=\(.*\);p=\(.*\)\]/\1 \3 \2;/g' \
12 | sed 's/\(http:\/\/[^ >]*\)\([ ;]\)/<\1>\2/g' \
13 | sed 's/;/./g'