In VI,
e.g. replace all occurrences of "bingo1" with "vingo 2" in current file.
in command state, execute command:
e.g. abc:de::f:gh -> abc;de;;f;gh
e.g. d:/windows/bingo -> /d/windows/bingo
见原出处
e.g. replace all occurrences of "bingo1" with "vingo 2" in current file.
in command state, execute command:
:1,$s/bingo1/vingo/ 2/e
In bash,
e.g. abc:de::f:gh -> abc;de;;f;gh
echo "abc:de::f:gh" | sed "s//://;/g"
In makefile,
e.g. d:/windows/bingo -> /d/windows/bingo
BINGODIR := d:/windows/bingo
ifneq (,$(findstring :,$(BINGODIR)))
override BINGODIR := /$(subst :,,$(BINGODIR))
endif
ifneq (,$(findstring :,$(BINGODIR)))
override BINGODIR := /$(subst :,,$(BINGODIR))
endif