Skip to content

Instantly share code, notes, and snippets.

@melvincarvalho
Last active December 3, 2018 12:56
Show Gist options
  • Save melvincarvalho/b6c7121f2c239c1878a26e9465fa1166 to your computer and use it in GitHub Desktop.
Save melvincarvalho/b6c7121f2c239c1878a26e9465fa1166 to your computer and use it in GitHub Desktop.
Fix https in solid terms
#!/usr/bin/env bash
# for i in `find $(pwd) -name publicTypeIndex.ttl` ; do bin/fixsolidterms.sh "$i" ; done
FILE=$1
TMPFILE=/tmp/solidterms.ttl
sed 's/https:\/\/www.w3.org\/ns\/solid\/terms#/http:\/\/www.w3.org\/ns\/solid\/terms#/g' $FILE > $TMPFILE
touch -r $TMPFILE $FILE
mv $TMPFILE $FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment