A tough one, I'm afraid.
I need files to be mass changed.
The input file consists of 4 space/tabe seperated values.
Looks like this:
"Current Name" "New Name" "NEW USER" "NEW ID"
MMDX-DE-D-C0973-AMAPS MMMM-DE-D-C0973-AMAPS VNXT3299 3291600
The file 'to be changed' has its entries in this format:
SCRIPTNAME "/ -job MMDX-DE-D-C0973-AMAPS -user BG060733 -i 05340301 -c C"
After the change it should look like this:
SCRIPTNAME "/ -job MMDX-DE-D-C0973-AMAPS -user VNXT3299 -i 3291600 -c C"
What needs to happen is this:
- all instances of MMDX-DE-D-C0973-AMAPS need replaced by MMMM-DE-D-C0973-AMAPS
- the "-user" parameter needs changed from BG060733 to VNXT3299
- the "-i" parameter needs changed from 05340301 to 3291600
The input file has about 1500 lines.
Hope you can help.
Many thanks in advance.