Files
oam/knowledge base/sponge.md
2022-05-15 00:24:53 +02:00

452 B

Sponge

TL;DR

# installation
brew install sponge   # or moreutils

# append file content to the source file
cat path/to/file | sponge -a path/to/other/file

# remove all lines starting with "#" in a file
grep -v '^{{#}}' path/to/file | sponge path/to/other/file

Further readings