AWK Shift empty column to left (to start position)
- by Filip Zembol
INPUT:
fofo jojo tst
fojo jofo sts
rhr hrhh dodo
jojo hoho jojo
zozo roro vovo
OUTPUT:
fofo jojo tst
fojo jofo sts
rhr hrhh dodo
jojo hoho jojo
zozo roro popo
NOTE: Please help me, I need to shift all rows, which have first column empty. Every fields are tab delimited. In this file some rows start from first column, but some rows start from second or third column.
Thank you