Simple script to break segments

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


Hours to be determined
Less than 1 week

Start Date

January 16, 2013


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.81) 261 reviews

Vancouver 03:19 PM

556 Jobs Posted
61% Hire Rate, 16 Open Jobs

Over $50,000 Total Spent
452 Hires, 46 Active

$20.52/hr Avg Hourly Rate Paid
4,752 Hours

Member Since Mar 21, 2011