I'm in a very similar situation to this: PDF viewer/reader that supports cycling through documents
The only answer suggest to create a bash script that opens all files, one after the other after killing the previous with a keyboard shortcut. This seems to by a very nice solution but the bash script doesnt work. Given my very limited experience with bash, could you find the problem here and explain me how to do such a script that actually works? Thanks in advance!
grep=$(which grep)
files=( *."pdf" )
count=$(printf '%d\n' "${#files[@]}")
no=0
skip=${1:-0}
for i in "${files[@]}"; do
((no++))
if [ $skip -gt $no ]; then
continue
fi
echo $no of $count - $(($no*100/$count)) '%'
echo -n "Note for file"'['$i']:'
evince "$i" # -i 3 opens the third page
# use a shortcut to kill evince here
clear
echo $no of $count - $(($no*100/$count)) '%'
echo -n "Note for file"'['$i']:'
read ok
echo $no > .batchview-status
[ -n "$ok" ] && echo "$i" >> notes.txt
[ -n "$ok" ] && echo "$ok" >> notes.txt
done