I am not sure how to start this process. I need to write a script that extract, the last four character, the first 7 characters and the first character from various fields. I need to automatically saved the results from these records to a text file and automatically have it saved to a folder.
accountNo = 123456789 results desired 1234567
ID = 78569 results desired 7856
Location = 7878 results desired 8
I need the results to display exact as displayed with spaces and line breaks
1234567(7 spaces)7856(line break)
All help is appreciated.