Date: Tue, 19 Sep 2006 18:39:43 +0200 From: Joan Picanyol i Puig <lists-freebsd-stable@biaix.org> To: freebsd-stable@freebsd.org Subject: Re: sed and comma-delimited file Message-ID: <20060919163943.GA50813@grummit.biaix.org> In-Reply-To: <c04d7e300609190926t1e5dce14wea7ef1a16ccf9af1@mail.gmail.com> References: <c04d7e300609190926t1e5dce14wea7ef1a16ccf9af1@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
* SigmaX asdf <fydernix@gmail.com> [20060919 18:31]: > 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? cut -d ',' -f 1-5 qvb -- pica
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060919163943.GA50813>