Date: Tue, 19 Sep 2006 22:23:06 +0400 From: "Oleg D." <perl@ipchains.ru> To: SigmaX asdf <fydernix@gmail.com> Cc: freebsd-stable@freebsd.org Subject: Re: sed and comma-delimited file Message-ID: <4510358A.9040009@ipchains.ru> In-Reply-To: <c04d7e300609190926t1e5dce14wea7ef1a16ccf9af1@mail.gmail.com> References: <c04d7e300609190926t1e5dce14wea7ef1a16ccf9af1@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
SigmaX asdf wrote:
> 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
All of advices were cool
but!
there's a good idea to work around something like that, but I don't
exactly know now how to solve your problem, the idea is:
`perl -pi~ -e 's/foo/bar/g' somefile`
works fine for `somefile'... I think TIMTOWTDI.
--
Oleg D.
--
don't believe every word people use to say, they might be wrong.
an undefined problem has infinitive number of solutions.
[-- Attachment #2 --]
0 *H
010 + 0 *H
00Cv|/5FCm5|g0
*H
0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
060916114055Z
070916114055Z0B10UThawte Freemail Member10 *H
perl@ipchains.ru0"0
*H
0
r2KZS4vcn7
?Pyr--<ʜ4(?ʣ\vK!=l&;B@=_^$3.),٭ 'vk;03hi)kJݥ?ئ@!A'ec\;%p=H$Ix ?N2jܯbiZaXpovV"V6l'c -0+0U0perl@ipchains.ru0U0 0
*H
u
2mB8@Ҵ
j9Ja2$i}4|2B_L1"/A䟵 l{7;diE3>=H鋱\6jfND SEH+00Cv|/5FCm5|g0
*H
0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
060916114055Z
070916114055Z0B10UThawte Freemail Member10 *H
perl@ipchains.ru0"0
*H
0
r2KZS4vcn7
?Pyr--<ʜ4(?ʣ\vK!=l&;B@=_^$3.),٭ 'vk;03hi)kJݥ?ئ@!A'ec\;%p=H$Ix ?N2jܯbiZaXpovV"V6l'c -0+0U0perl@ipchains.ru0U0 0
*H
u
2mB8@Ҵ
j9Ja2$i}4|2B_L1"/A䟵 l{7;diE3>=H鋱\6jfND SEH+0?0
0
*H
010 UZA10UWestern Cape10U Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H
personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
*H
0 Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr` 00U0 0CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
*H
HP.
fgCL!6-6/P p<ab:~ t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO1d0`0v0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAv|/5FCm5|g0 + 0 *H
1 *H
0 *H
1
060919182306Z0# *H
1C
ҖQ;LD.V0R *H
1E0C0
*H
0*H
0
*H
@0+0
*H
(0 +71x0v0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAv|/5FCm5|g0*H
1xv0b10 UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CAv|/5FCm5|g0
*H
Nt} t=߶)|p`+^A!y3m-;`9=Y9m 41cDozhLPO4~=rYq\"5e0\aY/ҪxɦMaRùa,?x(~
Oʹ698}zLXgT
tY
-^NL<"tqҤr[xBR>ЫD"9?F
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4510358A.9040009>
