Simple script to break segments

Closed - This job posting has been filled and work has been completed.
Web, Mobile & Software Dev Scripts & Utilities Posted 2 years ago

Hourly Job

Hours to be determined
Less than 1 week


I need a command line script to perform the following task (it can be an .sh for Ubuntu terminal or .bat for Windows (preferred))

Attached file will be the input. I want the output to split each <p></p> segment to words and have the time code updated accordingly.

<p begin="00:00:01.00" end="00:00:03.15">This is a sentence.</p>

<p begin="00:00:01.00" end="00:00:01.53">This</p>
<p begin="00:00:01.53" end="00:00:02.07">is</p>
<p begin="00:00:02.07" end="00:00:02.61">a</p>
<p begin="00:00:02.61" end="00:00:03.15">sentence.</p>

The input segment start at 01.00 and ends at 03.15 so it is a total of 215 milliseconds. So we break this down for each word in the output, (215/4=53.75) and distribute them to separate segments.

Milliseconds should be truncated at the second digit.

I need this ASAP. Please provide a FIX BID in your response message and the soonest time you can deliver the script.

About the Client

(4.99) 203 reviews

Vancouver 04:42 AM

474 Jobs Posted
61% Hire Rate, 11 Open Jobs

Over $50,000 Total Spent
362 Hires, 49 Active

$21.41/hr Avg Hourly Rate Paid
3,924 Hours

Member Since Mar 21, 2011