Write a Batch Script

Completed Posted 4 years ago Paid on delivery
Completed Paid on delivery

I have an XML document which contains hundreds of lines of Closed Captioning text. I need a script to subtract a number (x) from the begin number and from the end number. I also need a second script to delete the ID tag. I need to be able to set the number and hit "run" on a specific file. Prefer to run on iOS but Windows is ok. Both would be better.

Example:

File looks like this but many more lines of text:

<p begin="1973.6s" id="p451" end="1977.44s">Text 1</p>

<p begin="1977.76s" id="p452" end="1979.92s">Text 2</p>

<p begin="1980.22s" id="p453" end="1985.02s">Text 3</p>

Final file (after subtracting x=1973):

<p begin="0.6s" end="4.44s">Text 1</p>

<p begin="6.76s" end="6.92s">Text 2</p>

<p begin="7.22s" end="12.02s">Text 3</p>

XSLT, PHP, Javascript,

Coding Scripting

Project ID: #20580555

About the project

4 proposals Remote project Active 4 years ago

Awarded to:

vano101

Hello I checked your requirements and it looks pretty easy to complete. Perhaps, one question, do you need exact batch script? May Powershell script be suitable too? (It's possible to run under Windows too)

$20 USD in 1 day
(12 Reviews)
3.7

4 freelancers are bidding on average $33 for this job

lkhelladi

Hello, I'd be glad to build the desired scripts for you. Looking forward to chat with you soon for more details. Best regards,

$70 USD in 1 day
(1 Review)
3.4
vivi1990

Hi, I am glad to bid your project. I have many experiences in website design and development. My rich development experience will give you amazing result for your project. I am serious bidder, so I will only bid on pro More

$20 USD in 1 day
(1 Review)
0.8
sharktiger

Hi, I have read your requirements carefully and I can help you with your project. I am a licensed full stack programming developer and designer. I have many experiences in CI, laravel, wordpress, magento, drupal, pytho More

$20 USD in 1 day
(0 Reviews)
0.0