BASH Script to Insert Word Count By Line

Closed - This job posting has been filled and work has been completed.

Job Description

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.

Open Attachment