Have an input file with 200 lines, each line just one field which is a number. E.g.
I need to create one output file in a way that it will look like for every input line like following:
- All the fields have constant value (including empty values within commas) except the Second and the Third one
- Second field is filled by input file, the third one is obtained by removing last digit from the second field and replace at the beginning 899700601 with 42506 (as in the example).
I'm sure I can find ways how to do that (and I will try before getting answers) but I'm more interested in knowing which could be the more efficient in your opinion. Awk, sed, a shell script using both?