You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
187B

  1. #!/bin/bash
  2. mv pdf/*.pdf $(ls pdf/*.pdf |sed -e s/[é,è]/e/g -e s/' '/-/g)
  3. pdf=$(ls pdf/*.pdf)
  4. pdfseparate $pdf $pdf"-%d.pdf"
  5. zip $pdf.zip $pdf-*.pdf
  6. rm pdf/*.pdf
  7. echo $pdf.zip
  8. exit 0