What I am looking or hoping for is a simple routine/program to manipulate line text.
For this particular text file, the intent is to add a period 4 digits before a "/" and skip adding a period if it already exists. The text file could be very large so it is impractical to consider adding a period manually line by line. For example, I would like to change the file from this.I'm wondering if someone has an experiecne of editing a text file similar to this.
X
X
X
ITEM01,0220,2357606/00010,,600,2357,
X
X
X
X
ITEM01,0220,2360501/24200,,600,2360,
X
X
X
X
to this
X
X
X
ITEM01,0220,235.7606/00010,,600,2357,
X
X
X
X
ITEM01,0220,236.0501/24200,,600,2360,
X
X
X
X
For this particular text file, the intent is to add a period 4 digits before a "/" and skip adding a period if it already exists. The text file could be very large so it is impractical to consider adding a period manually line by line. For example, I would like to change the file from this.I'm wondering if someone has an experiecne of editing a text file similar to this.
X
X
X
ITEM01,0220,2357606/00010,,600,2357,
X
X
X
X
ITEM01,0220,2360501/24200,,600,2360,
X
X
X
X
to this
X
X
X
ITEM01,0220,235.7606/00010,,600,2357,
X
X
X
X
ITEM01,0220,236.0501/24200,,600,2360,
X
X
X
X