我对此一无所知,但已受命进行调查。谁能告诉我为什么会这么慢?或提供任何更改/替代方案?
#!/bin/bash
target="/Users/mariya/Desktop/Distribution"
echo “Target is something”
pushd "$target" > /dev/null
FILES="./*.pdf"
for f in $FILES
do
# Remove spaces from file
mv "$f" "${f//[[:space:]]}"
done
let count=0
for f in *
do
echo "Now printing: " $f
lpr -single -o landscape -o media=Custom.8.5x11in -o scale=100 -o page-ranges=1 $f
echo "Printing Complete"
let count=count+1
done
popd
echo ""
echo "Total Printed: $count"