hi,
The following awk works 'mostly ok',
except extra spaces are added by awk.
Does anybody know how to stop it from doing that?
cat $filein | awk '{print \
"|", substr($0,15, 2 ), \
"|", substr($0,72, 4 ), \
"|", substr($0,230, 80), \
"|", substr($0,856, 7 ) \
}'>fileout
eg:
| 02 | CHIL | |
Cheers
The following awk works 'mostly ok',
except extra spaces are added by awk.
Does anybody know how to stop it from doing that?
cat $filein | awk '{print \
"|", substr($0,15, 2 ), \
"|", substr($0,72, 4 ), \
"|", substr($0,230, 80), \
"|", substr($0,856, 7 ) \
}'>fileout
eg:
| 02 | CHIL | |
Cheers