Commit 701f10fb authored by Fred Drake's avatar Fred Drake

Simplify command that extracts the number of pages from a PostScript

file; use "grep -c" instead of "grep | wc -l | cut ... | tr ...".
parent 39cddb74
......@@ -18,6 +18,6 @@ EOF
for PART in api ext lib mac ref tut ; do
FILE=paper-$PAPER/$PART.ps
PAGECOUNT=`grep '^%%Page:' $FILE | wc -l | cut -f 1 | tr -d ' '`
PAGECOUNT=`grep -c '^%%Page:' $FILE`
echo " $PART.ps -- $PAGECOUNT pages"
done
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment