How can I insert a word at the beginning of each line of a text document??

Joined
Oct 1, 2004
Messages
626
Basically I have a .txt file that is just an enormous list of random numbers. One number per line, from 1, all the way through 10,000.

I would like to add the word passporttechnologies to the beinning of each one of those numbers.

Is there an easy way to do this?
 
In Windows, I'd copy and paste the text to excel. Insert a column to the left, then autofill the numbers 1-10,000. Then in the third column do =CONCATENATE(A1,A2). Fill that formula down for the entire column.

Copy and paste from the third column back into the text file.
 
I know the problem is solved but this can be easily done in gVim using regular expression.

:%s/^/passporttechnologies/g
 
Back
Top