Category "substitution"

Using "register recall" to search and replace doesn't work when register contains newline character

I've been using the answer to Using visual selection or register for search and replace as follows: v visually select y yank :%s/ Ctrl+r " This works fine in mo

How do you change parts of a string with a list variable in a for loop?

I want to open many files to do an analysis through python. The title changes in three ways, ID, intervention and drug_type So I define the path where the files

substitute characters in a string in all possible combinations

Character substitution in all possible combinations I have string as follows, XGXXGXXGGXXGXXGX I would like to iteratively substitute X's for either one, two,

Bash variable substitution and strings

Let's say I have two variables: a="AAA" b="BBB" I read a string from a file. This string is the following: str='$a $b' How to create a new string from the