help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Is it possible to move a column where column on right is variable wi


From: Ben Bacarisse
Subject: Re: Is it possible to move a column where column on right is variable width
Date: Wed, 17 May 2017 03:05:01 +0100

Angus Comber <address@hidden> writes:

> I downloaded a file, LSE.txt from this link:
>
> http://www.eoddata.com/Data/symbollist.aspx?e=LSE
>
> which is of the form:
>
> symbol<tab>Description
>
> the description is pretty free form.  Here are some examples:
>
> 06GG.L        BARCLAYS BANK PLC UNDATED FLTG RATE PRIM CAP NOTES'2'USD
> 06GL.L        NATIONAL GRID GAS 8.75% BDS 27/6/25 GBP(VAR)
> 07OZ.L        HAMMERSON PLC 6.875% BDS 31/3/20 GBP(VAR)
>
> What I would like to do is swap so it displays:
> Description<tab>Symbol.

It would help to show the output you want.

> I tried using rectangles, eg:

This would be the method of choice if you want the symbols to be lined
up.  If "Description<tab>Symbol" means you want one tab character
between the two, use a regex replace:

M-x replace-regexp RET
\(.*\)  \(.*\)RET
\2      \1RET

(I typed a tab between ) and \ and 2 and \ but it might get mauled by
some part of the mail sending)

<snip>
-- 
Ben.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]