aboutsummaryrefslogtreecommitdiff
path: root/sem4/hpp/eksamnen/search.sh
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2020-06-09 22:59:59 +0200
committerJulian T <julian@jtle.dk>2020-06-09 22:59:59 +0200
commit0e3cafc48570e4b675ecac11663a5f777b24d339 (patch)
treee858987f691774f4e2c652ea67ba9ff572d1b304 /sem4/hpp/eksamnen/search.sh
parent9300a7c997c986d1c1f1f1ef5f20df44e1ed8f11 (diff)
Added search scripts
Diffstat (limited to 'sem4/hpp/eksamnen/search.sh')
-rwxr-xr-xsem4/hpp/eksamnen/search.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/sem4/hpp/eksamnen/search.sh b/sem4/hpp/eksamnen/search.sh
new file mode 100755
index 0000000..b7b7ed8
--- /dev/null
+++ b/sem4/hpp/eksamnen/search.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+
+if [[ ! -f "superHPP.txt" ]]
+then
+ pdftotext superHPP.pdf
+fi
+
+if [[ ! -f "superHPPindex.txt" ]]
+then
+ ./placelinenums.rb superHPP.txt superHPPindex.txt
+fi
+
+okular -p $(cat superHPPindex.txt | fzf | awk '{print $1}') superHPP.pdf