From owner-freebsd-questions@FreeBSD.ORG Mon Feb 16 17:16:50 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BCDB106564A for ; Mon, 16 Feb 2009 17:16:50 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from imedmobility.com (host-50.216-16-29.iw.net [216.16.29.50]) by mx1.freebsd.org (Postfix) with ESMTP id 74E688FC0C for ; Mon, 16 Feb 2009 17:16:50 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from midco.net (host-47-73-107-208.midco.net [208.107.73.47]) by imedmobility.com (Postfix) with ESMTPSA id 6E9941173C53 for ; Mon, 16 Feb 2009 11:16:49 -0600 (CST) Message-ID: <49999F6B.4020400@gmail.com> Date: Mon, 16 Feb 2009 17:16:27 +0000 From: Adam Vande More User-Agent: Thunderbird 2.0.0.18 (X11/20081225) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: tab-delimited to csv X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Feb 2009 17:16:50 -0000 John Almberg wrote: > Can anyone suggest a way to convert a tab-delimited file to csv using > standard unix utilities? I could whip up a Ruby script to do it, but I > hate to reinvent the wheel. > > Thanks: John > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" if you just dealing with a few files, you could use thing like vi or and editor w/ regex capbilites to search and replace tabs w/ comma's. perl -pe ’s/\t/,/g’ table.tsv > table.csv