We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b05a580 commit f02c0cdCopy full SHA for f02c0cd
check-layout.sh
@@ -1,5 +1,10 @@
1
#!/bin/bash
2
+#
3
+# Check that a given pdf has a certain number of pages.
4
+# Usage:
5
+# check-num-pages.sh [pdffile] [num_pages]
6
7
set -x
-
-[[ "$(pdfinfo $1 | grep Pages | awk '{print $2}')" == "$2" ]] || exit 1
8
+# pdffile=$1
9
+# num_pages=$1
10
+[[ "$(pdfinfo $pdffile | grep Pages | awk '{print $2}')" == "$num_pages" ]] || exit 1
0 commit comments