Forrest logo
back to context overview

sponge

List of commands for sponge:

  • sponge:tldr:6b029 sponge: Append file content to the source file.
    $ cat ${filename} | sponge -a ${filename}
    try on your machine
    explain this command
  • sponge:tldr:fadef sponge: Remove all lines starting with # in a file.
    $ grep -v '^${#}' ${filename} | sponge ${filename}
    try on your machine
    explain this command
back to context overview