On 0, Yedidyah Bar-David <[EMAIL PROTECTED]> wrote:
> On Mon, Sep 01, 2003 at 11:31:34AM -0400, Subba Rao wrote:
> >
> > Hello,
> >
> > I have a large text file where 2 lines (fields) form a record. Now I want
> > to merge the 2 lines into one line seperated by a comma.
> >
> > Line1
> > Line2
> >
> > The fields should be seperated by a comma.
> >
> > Line1,Line2
> >
> > How can I define a keystroke that will,
> > add a comma at the end of Line1
> > perform a JOIN of Line1 and Line2
> > move the cursor to the next record?
>
> map key A,^[Jj
> ("^[" is Esc. To type it, press Ctrl-V Esc).
> If the pairs are not consecutive, but the first matches some regexp,
> you can replace the last 'j' with '/regexp^M' ("^M" is Enter).
Thank you for replying. I modified the macro a little bit and it works.
Thanks for the pointer.
One other question is, how can I find white space (non-printable) characters
in a text file. The records file was created from PDF to text with the help of
"pdftotext". I don't what characters are in this file, but when I try to
import it into an application, the data gets mangled. The file opens fine in
any of the spreadsheets. I want to see the characters in the file (not \n or
<SPACE> etc).
Thank you once again.
--
Subba Rao
[EMAIL PROTECTED]
------------------------------------------------------------------------------
Old American Wild West saying: God created men but Colt made them equal.
Today: Linus created Linux and Linux made IT companies equal.
=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]