BASH Script to Insert Word Count By Line

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

Fixed Price

Budget: $10
Delivery by January 8, 2013

Start Date

January 8, 2013


Looking for a developer to write a quick bash script to take a txt file and insert word counts at the beginning of each line.  Lines with zero words should be blank (i.e. should not put 0).  Must format the output so that the text is left aligned, regardless of the number of characters in the count.  Use the attached text file as a sample; included at the top of the text file is the example output.  Note in the attached file sample blank lines do not have a zero at the front and the text is left aligned with even spacing between the word count and the beginning of the text.

About the Client

(4.97) 14 reviews

United States
San Jose 11:32 PM

46 Jobs Posted
68% Hire Rate, 1 Open Job

$5,119 Total Spent
32 Hires, 0 Active

$6.86/hr Avg Hourly Rate Paid
396 Hours

Member Since Mar 23, 2008