sed and comma-delimited file



Yo;

I have a series of comma-delimited text files with fourteen columns of
data and several hundred rows. I want to use a short shell script to
strip them of the last 9 columns, leaving the same file but with just
five of its columns. I can do it in C++, but that seems like
overkill. How would I go about doing it with sed or a similar
utility?

SigmaX
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: sed and comma-delimited file
    ... I want to use a short shell script to ... strip them of the last 9 columns, leaving the same file but with just ... overkill. ...
    (freebsd-stable)
  • Re: sed and comma-delimited file
    ... I want to use a short shell script ... to strip them of the last 9 columns, leaving the same file but with ... Matt Emmerton ...
    (freebsd-stable)
  • Re: sed and comma-delimited file
    ... I want to use a short shell script to ... strip them of the last 9 columns, leaving the same file but with just ...
    (freebsd-stable)
  • Re: sed and comma-delimited file
    ... SigmaX asdf wrote: ... I want to use a short shell script to ... strip them of the last 9 columns, leaving the same file but with just ... overkill. ...
    (freebsd-stable)
  • Re: Todays chuckle
    ... cutting off a three inch wide strip of 58" fabric. ... putting it aside to go in the remnant bin. ... Leaving you with a scant four yards - on one end of the fabric, anyway, perhaps a little less on the other end. ...
    (alt.sewing)