DESCRIPTION The script saves the lines between *'%%BeginDocument: name'* and *'%%EndDocument'* to a new file named *dir/name*.
$ psrip -d ~/discards/gens/eps www10_sarwar.ps psrip v1.3 by Christian Lackas (delta@clackas.de, http://www.clackas.de) Saving images to directory '/home/tong/discards/gens/eps'. Checking www10_sarwar.ps. Finished (0 images extracted)
$ head !$ %!PS-Adobe-3.0 %%Creator: GNU Ghostscript 550 (pswrite) %%DocumentData: Clean7Bit %%LanguageLevel: 2