mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
Added sponge notes to the knowledge base
This commit is contained in:
22
knowledge base/sponge.md
Normal file
22
knowledge base/sponge.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Sponge
|
||||
|
||||
## TL;DR
|
||||
|
||||
```shell
|
||||
# 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
|
||||
|
||||
- [mankier man page]
|
||||
- [tldr live demo page]
|
||||
|
||||
[mankier man page]: https://www.mankier.com/1/sponge
|
||||
[tldr live demo page]: https://tldr.ostera.io/sponge
|
||||
Reference in New Issue
Block a user