[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

vi globally append question



hi all,

i have a file like;

#
one
123

and i would like to APPEND a # at the beginning of
each line which is not started with a # . how can i do
it with vi or ed, so far, i 've tried;

:%s/^[a-z]:[0-9]/#/g

but this would CHANGE the first character of each line
to a hash, pls help.

thks in advance.


	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 



Reply to: