Strabon

annotate scripts/printNTriples @ 304:43d00ac76683

downgrade sl4j to 1.5.8 instead of 1.6.6 due to warnings by Tomcat
author Babis Nikolaou <charnik@di.uoa.gr>
date Wed Jun 20 12:10:38 2012 +0300 (2012-06-20)
parents 8863c960e1f0
children
rev   line source
grad1110@160 1 #! /bin/bash
grad1110@160 2
grad1110@160 3 input=$1
grad1110@160 4
grad1110@160 5 if [ "$input" == "" ]; then
grad1110@160 6 echo "give database name"
grad1110@160 7 exit -1
grad1110@160 8 fi
grad1110@160 9
grad1110@160 10 fgrep '[s=' $input \
grad1110@160 11 | sed 's/\[s=\(.*\);o=\(.*\);p=\(.*\)\]/\1 \3 \2;/g' \
grad1110@160 12 | sed 's/\(http:\/\/[^ >]*\)\([ ;]\)/<\1>\2/g' \
grad1110@160 13 | sed 's/;/./g'