Comment by emmelaich
3 hours ago
You could also use the inbuilt substitution mechanism:
$ parameter='fisholdbits'
$ echo ${parameter/old/new}
fishnewbits
3 hours ago
You could also use the inbuilt substitution mechanism:
$ parameter='fisholdbits'
$ echo ${parameter/old/new}
fishnewbits
No comments yet
Contribute on Hacker News ↗