This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" != "mount" ] && [ "$1" != "umount" ]; then | |
echo "(Un)mounts all USB disks partitions. Usage: " | |
echo pmount-all mount | |
echo pmount-all umount | |
exit 0 | |
fi | |
readarray sd < <(ls /dev | grep sd[b-z][1-9]) | |
for ((i=0; i<${#sd[@]}; i++)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This is a script to transform a PDF containing a scanned book into a searchable PDF. | |
# Based on previous script and many good tips by Konrad Voelkel: | |
# http://blog.konradvoelkel.de/2010/01/linux-ocr-and-pdf-problem-solved/ | |
# http://blog.konradvoelkel.de/2013/03/scan-to-pdfa/ | |
# Depends on convert (ImageMagick), pdftk and hocr2pdf (ExactImage). | |
# $ sudo apt-get install imagemagick pdftk exactimage | |
# You also need at least one OCR software which can be either tesseract or cuneiform. | |
# $ sudo apt-get install tesseract-ocr |
NewerOlder