Bin Bash脚本很慢

我对此一无所知,但已受命进行调查。谁能告诉我为什么会这么慢?或提供任何更改/替代方案?

#!/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"
haixiakeji 回答:Bin Bash脚本很慢

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3120959.html

大家都在问