Menu

Dipesh Majumdar

Blog and Paintings

empower sed to to work on case insensitive strings

This is what you need to do in a macOS:

brew install gnu-sed

The end of the installation looks like this:


==> Pouring gnu-sed-4.7.mojave.bottle.3.tar.gz
==> Caveats
GNU "sed" has been installed as "gsed".
If you need to use it as "sed", you can add a "gnubin" directory
to your PATH from your bashrc like:
PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"
==> Summary
/usr/local/Cellar/gnu-sed/4.7: 12 files, 562.0KB

 

Now not only author but also AUTHOR will get changed to publish

sed -e 's/author/publish/gI' deploy.yaml | tee edited.yaml

Go Back

Comment