ok Im trying to take the contents from another file and parse them.
So my Columns look like this after parsing:
Data| Pin | Time | Delay |
800 | address | 15 | 23
How can I make the text look like this:
Edit:
is it possible to have this format:
Data | Pin | Time | Delay |
800 | LONG PIN NAME | 16 | 15 |
Each column aligment should be different based on the lenght of string.
I know I can use .split('|') to make the lines into a list but how to I make it so that each column uses a specific number of spaces and does not go pass that. So for example:
for lines in file:
#align lines
#write lines. align to new file
this will then be sent from unix to outlook email, so for some reason the columns always get unaligned in unix if one element in a column is too long and they are always out of aligment in outlook.