bin sh TO_READ_DIR home user Docs To read PDF_VIEWER evince file find

1
2
3
4
5
6
#!/bin/sh
TO_READ_DIR="/home/user/Docs/To read"
PDF_VIEWER="evince"
file=`find "$TO_READ_DIR" -maxdepth 1 -type f -name '*pdf'| sort --random-sort | head -1`
$PDF_VIEWER "$file"