2010-01-18

linux, search & replace

command:
:1,%s/opt\/repository/opt\/billson\/repository/g

explain:
- :1 = go to line 1, eg, :5 = go to line 5
- %s = search
- opt\/repository = parameter 1
- opt\/billson\/repository = parameter 2
- g = global

Google Referrals