This is that last final part of my script that involves two math formulas.
Now I have learned soooo much from those of you that have helped me in
my recent posts. This is the very last final part, and it will be all
complete.
There are several files called pre_build_i# There is alot of text in
these files, but I am only concerned about a few lines. The text I
need to look at is similiar to below:
DTBLEIP=166RBLT;
EXDAIEV=DEV_ONE&&-DEV_TWO;
BLODEEV=DEV_ONE&&-DEV_TWO;
RXAPI:MO=RXOTG-62,DEV=DEV_ONE&&-DEV_TWO,DCP=5&&17;
The first formula is such:
Take the number next to RBLT and Multiply it by 24.
Take that number and add the first number next to the text: DCP=
Then that sum should be subtracted by 1.
Take that final number and put it in the place of the text DEV_ONE
So the first final number using the above example would be:
166 * 24 = 3984
3984 + 5 = 3989
3989 - 1 = 3988 (Use this number and replace the text DEV_ONE)
The second formula is such:
Take the number next to RBLT and Multiply it by 24.
Take that number and add the second number next to the text: && after the DCP=
Then that sum should be subtracted by 1.
Take that final number and put it in the place of the text DEV_TWO
So the second final number using the above example would be:
166 * 24 = 3984
3984 + 17 = 4001
4001 - 1 = 4000 (Use this number and replace the text DEV_TWO)
After replacing just output to a final file called final_prebuild_# using the
number of the input file as usual.
I should end up with a final file for each input pre_build_i# file like:
DTBLEIP=166RBLT;
EXDAIEV=3988&&-4001;
BLODEEV=3988&&-4001;
RXAPI:MO=RXOTG-62,DEV=3988&&-4001,DCP=5&&17;
That is the last last part of my 4-6 month quest to automate rehoming cell
sites automatically if I can have some help with the formula and script to finish.
I wanted to especially thank: CaKiwi , Vlad, and Marsd. I have learned so much in
the past 4 months from the three of you, everyone here is in the best hands with you!
Now I have learned soooo much from those of you that have helped me in
my recent posts. This is the very last final part, and it will be all
complete.
There are several files called pre_build_i# There is alot of text in
these files, but I am only concerned about a few lines. The text I
need to look at is similiar to below:
DTBLEIP=166RBLT;
EXDAIEV=DEV_ONE&&-DEV_TWO;
BLODEEV=DEV_ONE&&-DEV_TWO;
RXAPI:MO=RXOTG-62,DEV=DEV_ONE&&-DEV_TWO,DCP=5&&17;
The first formula is such:
Take the number next to RBLT and Multiply it by 24.
Take that number and add the first number next to the text: DCP=
Then that sum should be subtracted by 1.
Take that final number and put it in the place of the text DEV_ONE
So the first final number using the above example would be:
166 * 24 = 3984
3984 + 5 = 3989
3989 - 1 = 3988 (Use this number and replace the text DEV_ONE)
The second formula is such:
Take the number next to RBLT and Multiply it by 24.
Take that number and add the second number next to the text: && after the DCP=
Then that sum should be subtracted by 1.
Take that final number and put it in the place of the text DEV_TWO
So the second final number using the above example would be:
166 * 24 = 3984
3984 + 17 = 4001
4001 - 1 = 4000 (Use this number and replace the text DEV_TWO)
After replacing just output to a final file called final_prebuild_# using the
number of the input file as usual.
I should end up with a final file for each input pre_build_i# file like:
DTBLEIP=166RBLT;
EXDAIEV=3988&&-4001;
BLODEEV=3988&&-4001;
RXAPI:MO=RXOTG-62,DEV=3988&&-4001,DCP=5&&17;
That is the last last part of my 4-6 month quest to automate rehoming cell
sites automatically if I can have some help with the formula and script to finish.
I wanted to especially thank: CaKiwi , Vlad, and Marsd. I have learned so much in
the past 4 months from the three of you, everyone here is in the best hands with you!