Files
oam/knowledge base/sponge.md
2023-07-09 21:35:14 +02:00

596 B

Sponge

Table of contents

  1. TL;DR
  2. Further readings

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