Skip to content

Commit

Permalink
bnp/obras-de-autor.sh - lista as obras de um autor
Browse files Browse the repository at this point in the history
Ref.: #5
  • Loading branch information
marado committed Dec 18, 2016
1 parent 8c36773 commit 327d98e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bnp/obras-de-autor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

# Lista todas as obras catalogadas de determinado autor

autor="$*"

echo "<b>$autor</b>"
for r in $(
grep "rdaa:P50111 \"$autor\"" a0511.ttl -B3|grep theeuropeanlibrary|cut -d\< -f2|cut -d\> -f1
); do
obra=$(echo "$r :"; grep "$r> a <" a0511.ttl -A6|grep rdam:P30156|cut -d\" -f2);
echo "<li>$obra</li>";
done
echo "</p>"

0 comments on commit 327d98e

Please sign in to comment.