mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 14:02:08 +02:00

Most of the links were replaced by manned.org, except when there are more up-to-date sources (like `ifup`) or first-party sources (like `sftp`).
12 lines
317 B
Markdown
12 lines
317 B
Markdown
# sponge
|
|
|
|
> Soak up the input before writing the output file.
|
|
> More information: <https://manned.org/sponge>.
|
|
|
|
- Append file content to the source file:
|
|
|
|
`cat {{path/to/file}} | sponge -a {{path/to/file}}`
|
|
|
|
- Remove all lines starting with # in a file:
|
|
|
|
`grep -v '^{{#}}' {{path/to/file}} | sponge {{path/to/file}}`
|