Archive for กุมภาพันธ์, 2008

replace text in entire file using vi

:%s/old/new/g

: 1,$s/old/new/g

note : % is all line of current file,

. is current line of current file

$ is last line of current file

1 is first line of current file

Leave a comment »