Files
oam/knowledge base/sponge.md
2022-04-17 23:04:38 +02:00

454 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