This is the input file with "comma" delimiter.
$ cat dine_final.txt
FILENAME,FILESIZE,FILECOUNT
bur_m2_j12_re_yyyymmdd.dat,1235,1254
bur_m2_j13_re_yyyymmdd.dat,125,12546825
bur_m2_j14_re_yyyymmdd.dat,12565652425,125856
bur_m2_j35_re_yyyymmdd.dat,125,12
bur_m2_j40_re_yyyymmdd.dat,123542,1254
macys_unified_RE_prod_yyyymmdd.dat,12354,1254
I want the output with the good looking format. all the fields under "FILENAME" should start with exact same beginning, "FILESIZE" should start with same field, "FILECOUNT" should start with same field.
FILENAME FILESIZE FILECOUNT
bur_m2_j12_re_yyyymmdd.dat 1235 1254
bur_m2_j13_re_yyyymmdd.dat 125 12546825
bur_m2_j14_re_yyyymmdd.dat 12565652425 125856
bur_m2_j35_re_yyyymmdd.dat 125 12
bur_m2_j40_re_yyyymmdd.dat 123542 1254
macys_unified_RE_prod_yyyymmdd.dat 12354 1254
,
be tab withtr
orsed
and then go like this – Philippos May 10 '17 at 10:29column
command from the duplicate Q may not be available on AIX (tagged here); perl may be; expand and awk should be available. – Jeff Schaller May 10 '17 at 11:07