From owner-freebsd-stable@FreeBSD.ORG Tue Sep 19 16:26:57 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A55716A40F for ; Tue, 19 Sep 2006 16:26:57 +0000 (UTC) (envelope-from fydernix@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFB0343D6A for ; Tue, 19 Sep 2006 16:26:55 +0000 (GMT) (envelope-from fydernix@gmail.com) Received: by wr-out-0506.google.com with SMTP id i21so1502976wra for ; Tue, 19 Sep 2006 09:26:55 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=K2kYljJ6Vnaf/FocaRltJ0xnfYOnY0dTm/EvadRZWENmQrd/x14kN0IUplJUGJKVLE60K0l6FMfEyrbKasLhmhV9rkoOgNhZHS814MZnNf/Uo5dB+hgdhYbkgZqUy5OjcAIo54zCliNSFFgrdGrmjAcO3O2rwq0puLyUPfwyoEQ= Received: by 10.90.100.2 with SMTP id x2mr5591581agb; Tue, 19 Sep 2006 09:26:54 -0700 (PDT) Received: by 10.90.72.2 with HTTP; Tue, 19 Sep 2006 09:26:54 -0700 (PDT) Message-ID: Date: Tue, 19 Sep 2006 12:26:54 -0400 From: "SigmaX asdf" To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: sed and comma-delimited file X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Sep 2006 16:26:57 -0000 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