> I just received about 40 emails when properly "cut-up" and "pasted"
> togather, will create about 6 postscript files. Instead of saving
> Individual message togather, I just copied the message from /var/mail
> directory. So it`s just a single huge file.
> Is there an easier and faster way to do this than manually editing them?
I thought of using sed. I would eliminate all lines that have a ":" in
them or were blank, but it's possible that your PostScript file might have
a ":" in it.
A Perl script would work. You find lines beginning with "From " and remove
all lines upto and including the next blank line. However, it might be
quicker and easier simply mapping a key in "vi" to do this instead of
writing a Perl script. Especially if this is a one shot deal. A possible
map might be:
" at the beginning of the line, delete the paragraph (up to the next blank
line), and finally delete the blank line itself. If you're lucky, you
could map one of your Function Keys to this macro like this:
:map #1 /^From ^Md}dd
This might map F1 to the macro. It works in my hpterm on HP-UX 9.x, but
not Xterm.
BTW, the "^M" stands for control M. You make it by holding down the
control key and typing "vm".
--
David Weintraub _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
System Configuration Management _/ _/
Dow Jones/Telerate - NSG _/ I AM THE GREAT AND POWERFUL OZ* _/
*Pay no attention to the man behind the curtains