+(1) -(1) +(1) +(3) +(1) +(1) +(1) +(1) +(4) +(3) +(3) +(3) +(1) +(1)
Count total pages of pdf files in a directory 05/12/08 17:37
declare -i C=0
for i in *.pdf
  do pdftops $i toto.ps
  C=$C+$(grep -c showpage toto.ps)
  echo $C
done;