Date: Mon, 16 Feb 2009 17:16:27 +0000 From: Adam Vande More <amvandemore@gmail.com> To: freebsd-questions@freebsd.org Subject: Re: tab-delimited to csv Message-ID: <49999F6B.4020400@gmail.com> In-Reply-To: <A1268853-0066-4604-AB9E-7D45E738BF32@identry.com> References: <A1268853-0066-4604-AB9E-7D45E738BF32@identry.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49999F6B.4020400>