sponge

Soak up the input before writing the output file. More…

sponge

Soak up the input before writing the output file. More information: https://linux.die.net/man/1/sponge.

cat {{path/to/file}} | sponge -a {{path/to/file}}

grep -v '^{{#}}' {{path/to/file}} | sponge {{path/to/file}}

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← split spotdl →