diff options
author | Fred Drake <fdrake@acm.org> | 1999-01-12 19:28:41 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 1999-01-12 19:28:41 (GMT) |
commit | 701f10fbea20a009a4c823711f64360e24361d05 (patch) | |
tree | 7fdee16475c8270237895e5f2a897fea1f52cddd /Doc/tools/getpagecounts | |
parent | 39cddb74398662303ecdbd908cc8a0c6138bd858 (diff) | |
download | cpython-701f10fbea20a009a4c823711f64360e24361d05.zip cpython-701f10fbea20a009a4c823711f64360e24361d05.tar.gz cpython-701f10fbea20a009a4c823711f64360e24361d05.tar.bz2 |
Simplify command that extracts the number of pages from a PostScript
file; use "grep -c" instead of "grep | wc -l | cut ... | tr ...".
Diffstat (limited to 'Doc/tools/getpagecounts')
-rwxr-xr-x | Doc/tools/getpagecounts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/tools/getpagecounts b/Doc/tools/getpagecounts index 46d3a13..7ede6b8 100755 --- a/Doc/tools/getpagecounts +++ b/Doc/tools/getpagecounts @@ -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 |