You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
353 B
Bash
13 lines
353 B
Bash
#!/bin/dash
|
|
#scanif - scan several documents one-b-one with SANE/CUPS.
|
|
#Written by Leo Coogan / fm'latghor & re:fi.64 / Ryan Gonzalez
|
|
i=0
|
|
while true; do
|
|
read -p "Ready to scan. Scan your item(s)? y/N " yn
|
|
case $yn in
|
|
[Yy]* ) scanimage --format=png > ${i}scan.png; i=$(($i+1));;
|
|
[Nn]* ) exit;;
|
|
* ) printf "Please answer yes or no. ";;
|
|
esac
|
|
done
|