Hi,
Think this is a simple question (I hope!).
I have a script which needs to process an input file. It needs to determine what to do with the file based upon the value of the last field in the file. The file is a fixed-length format (no field separators. The field is consistent thoughout the file (i.e will contain the same value on each record).
So, I need to test the first record, if the field contains 40 or 41, do 1 thing, otherwise do something else. How can I do this?
I'm sure it's easy!
Many Thanks for any advice (from a UNIX scripting novice!)![[morning] [morning] [morning]](/data/assets/smilies/morning.gif)
Think this is a simple question (I hope!).
I have a script which needs to process an input file. It needs to determine what to do with the file based upon the value of the last field in the file. The file is a fixed-length format (no field separators. The field is consistent thoughout the file (i.e will contain the same value on each record).
So, I need to test the first record, if the field contains 40 or 41, do 1 thing, otherwise do something else. How can I do this?
I'm sure it's easy!
Many Thanks for any advice (from a UNIX scripting novice!)
![[morning] [morning] [morning]](/data/assets/smilies/morning.gif)