cruel
Programmer
- Aug 6, 2001
- 131
Is there a way to get a substring from the arguments you read in? For example, you have the following arguments:
order1201.txt
order1202.txt
I want to process those files using "for ..." and create output files like
summary1201.txt
summary1202.txt
Can I get the substring starting from the 6th position in each of the argument for a legnth of 4 to create a compatible output file.
Thanks
order1201.txt
order1202.txt
I want to process those files using "for ..." and create output files like
summary1201.txt
summary1202.txt
Can I get the substring starting from the 6th position in each of the argument for a legnth of 4 to create a compatible output file.
Thanks