mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
452 B
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