SED
26. 4. 2021https://www.grymoire.com/Unix/Sed.html
One can use pipe as delimiter instead of slash
sed 's|/usr/local/bin|/common/bin|' <old >new
You can leave the part of the pattern in place
sed 's/\([a-z]*\).*/\1/'
where \1 is the 1st part…