On Tue, 2002-10-01 at 11:27, Simon Wong wrote:
> vi gurus,
> 
> I've done some googling but couldn't find something to tell me how...
> 
> I want to comment out every line in a file (inetd.conf) but not the ones
> that already are.
> 
> I tried
> 
> :1,$s/^/#
> 

%s/^[^#]/#/

-- 
Tony Green <[EMAIL PROTECTED]>
Tel       :   +61-(0)2-9500-9996    

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to