aboutsummaryrefslogtreecommitdiff
path: root/sem4/hpp/eksamnen/search.sh
blob: b7b7ed8e4966ed7e1db3fc1f39570a332a02779c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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