Skip to content
evanmoran edited this page Sep 14, 2012 · 1 revision

Split a file by tabs and reorder columns

echo 'A\tB\t\tD' | awk -v OFS="    " -F"\t" '{print $2, $4}' # => 'B    D' 

Clone this wiki locally