4 ms·
sponge is great when you want to read and write to the same file: cat file.txt | grep -v secret | sponge file.txt
by cmcginty 8y ago
sponge is great when you want to read and write to the same file:
cat file.txt | grep -v secret | sponge file.txt