06-21-2011
3,231,
978
Join Date: Dec 2009
Last Activity: 11 June 2014, 8:40 PM EDT
Posts: 3,231
Thanks Given: 179
Thanked 978 Times in 791 Posts
Try a dot before the "*".
Also, you don't really need to specify an address for the substitution command. Since all preceding lines have been deleted, the first line with "word" will not only be the current line but also the first line. The address "1," before the substitution command is equivalent to "1,<current line>" which is equivalent to "<current line>,<current line>" (.,.) which is the default address used when 2-address commands (of which s is one) are not given any addresses.
And remember, .* is a greedy match. If the word occurs more than once on the line, it will delete all but the final occurrence of it.
Regards and welcome to the forum,
Alister