[nycbug-talk] Re: Simple sed question

Francisco Reyes lists
Fri Jan 7 13:33:14 EST 2005


One of these days I will learn to always reply with the right ID to the 
list. :-(

On Fri, 7 Jan 2005, George Georgalis wrote:

>507     AllianceBer Intl PremGr C     AIPCX   8.29    -2.24   -1.54
>508     AllianceBer Intl PremGrAd     AIPYX   8.87    -1.88   -0.67
>509     AllianceBer Intl Val A        ABIAX   14.91   5.59    9.79
>510  AllianceBer Intl Val A    ABIAX   14.91   5.59    9.79
>511 AllianceBer Intl Val A    ABIAX   14.91   5.59    9.79
>512 AllianceBer Intl Val A    ABIAX   14.91   5.59    9.79

>s/[ \t]*/\t/g
>substitute, any combination of spaces and tabs with one tab character,
> globaly across the line (untested)

  I don't think that's what I am looking for.
  If you substitute spaces by a tab then the spaces inside the description will
  be made into tab. For example "AllianceBer Intl PremGr C" should remain with
  it's spaces.





More information about the talk mailing list