rootpages icon indicating copy to clipboard operation
rootpages copied to clipboard

[programming][shell] Find and replace

Open LukeShortCloud opened this issue 1 year ago • 0 comments
trafficstars

Find and replace with a variable by using the following synatx:

${<VARIABLE>/<FIND>/<REPLACE>}

Example:

$ foobar=123
$ echo ${foobar//1/4}
423

LukeShortCloud avatar Oct 30 '24 23:10 LukeShortCloud