How can I set TAB as the delimiter inside a script file that will manipulate another file? For example, let's say I have a file with four fields separated by tabs and each field has four items. Can I set TAB as a delimiter inside a script file or can I only do that at the shell?
Ok, so I think I have the tab thing figured out...only thing is now that I can't seem to align the fields along the left side due to one word being quite longer than the others in the first field, for example:
Giants 2007 Finished last place
Reds 2007 Finished fifth place
Philadelphia 2007 Finished first place
Something like this...so everytime I increase the control characters (%s) to align the Philadelphia line stays out of alignment increasing as well. What can I do here?
I'm good so far, thanks everyone for the info about the tabs. Now I'm trying to calculate the average of a particular field. I know tot(and then the field name)+= will total it, but what about an average?
Also, rest assured that I'm not just throwing all of this on all of your good shoulders. I, too, am googling and the like for answers. Just so you all know