Article View: comp.lang.postscript
Article #2421Re: Shorter version of PostScript "Recycle" symbol
From: Jim Cathey
Date: Mon, 02 Jul 1990 22:02
Date: Mon, 02 Jul 1990 22:02
30 lines
1603 bytes
1603 bytes
In article <6785@umd5.umd.edu> zben@umd5.umd.edu (Ben Cranston) writes:
>awk 'BEGIN {
><7 pages of a pretty complicated awk program>
>}' $*
>
>and the additions pushed the size of the program over 8192 characters and
>evidently Unix has that limit on the size of "program arguments".
>
>Given the choice of purging the comments, throwing away the indentation,
>or shortening the variable names, I decided:
What I've seen done is to use sed to chew up the nice human-readable format...
FIND=`sed -e "s/ //" -e "s/ *#.*//" <<'EOT'
gnarly indented awk program here # with comments like this..
EOT
`
awk "$FIND" arguments
You can even stick in some -e "s/longvariable/lv" substitutions to trim it
down even more. (That first substitution deletes tab characters, by the way.)
+----------------+
! II CCCCCC ! Jim Cathey
! II SSSSCC ! ISC-Bunker Ramo
! II CC ! TAF-C8; Spokane, WA 99220
! IISSSS CC ! UUCP: uunet!isc-br!jimc (jimc@isc-br.iscs.com)
! II CCCCCC ! (509) 927-5757
+----------------+
"With excitement like this, who is needing enemas?"
Technical Details
Message-ID:
<2882@isc-br.ISC-BR.COM>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!isc-br!jimcReferences:
<6741@umd5.umd.edu> <185@heaven.woodside.ca.us> <6750@umd5.umd.edu> <186@heaven.woodside.ca.us> <6761@umd5.umd.edu> <188@heaven.woodside.ca.us> <6785@umd5.umd.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!isc-br!jimc From: jimc@isc-br.ISC-BR.COM (Jim Cathey) Newsgroups: comp.lang.postscript Subject: Re: Shorter version of PostScript "Recycle" symbol Message-ID: <2882@isc-br.ISC-BR.COM> Date: 2 Jul 90 22:02:36 GMT References: <6741@umd5.umd.edu> <185@heaven.woodside.ca.us> <6750@umd5.umd.edu> <186@heaven.woodside.ca.us> <6761@umd5.umd.edu> <188@heaven.woodside.ca.us> <6785@umd5.umd.edu> Organization: ISC-Bunker Ramo, An Olivetti Company Lines: 30