Replacement command

Books has a very powerful replacement command that can be accessed by typing "/w --replace".

CommandMeaning
/w --replace foo barReplace the word foo with the word bar
/w --replace fooRemove the word foo
/w --replace "this sentence" "other sentence"Replace this sentence with other sentence

Once you've executed a replacement command, you will see a screen similar to this one: Replacement command

As seen in the picture you need to confirm the replacement using "/w --confirm". You may also use the short version "/w -c":

CommandMeaning
/w --confirm 0-2Replace the match 0, 1 and 2
/w -c 0-2Same as above
/w -c 2-5 10Replace the match 2, 3, 4, 5 and 10
/w -c 4 6Replace the match 4 and 6

Comments

Posts Quoted:
Reply
Clear All Quotes