الأربعاء، 25 ديسمبر 2013

Parse //t tabs out of a .tsv via UNIX?

We are receiving a file that is delimited into columns with tabs (\t). When there is a tab present in one of the "fields" of the file, it comes in as a special tab with two backslashes (\tab).

This is causing a problem with our ETL software, so I am wondering how to take these double backslash files out prior to processing, but the sed syntax I'm using is not working:

sed "s/`echo \\\t`/ /g"

Any help would be greatly appreciated.


View the original article here

ليست هناك تعليقات:

إرسال تعليق