home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mega Top 1
/
os2_top1.zip
/
os2_top1
/
APPS
/
TEKST
/
PSUTILS
/
FIXWWPS.PL
< prev
next >
Wrap
Perl Script
|
1993-10-27
|
364b
|
21 lines
#!@PERL@
# fixwwps: get semi-conforming PostScript out of Windows Write file
# feed this into perl
eval 'exec perl -S $0 "$@"'
if $running_under_some_shell;
$page = 1;
while (<>) {
if (/^(%!.*) EPSF-\d.\d/) {
print $1, "\n";
} elsif (/^SS/) {
print "%%Page: $page $page\n";
print $_;
$page++;
} else {
print $_;
}
}