Skip to main content
added 4 characters in body
Source Link
muru
  • 77.9k
  • 16
  • 212
  • 318

Use spongesponge from the moreutils package. It has the advantage that it does not write to stdout.

echo test | sudo sponge /tmp/foo

Use the -a-a option to append to a file instead of overwriting it.

Use sponge from the moreutils package. It has the advantage that it does not write to stdout.

echo test | sudo sponge /tmp/foo

Use the -a option to append to a file instead of overwriting it.

Use sponge from the moreutils package. It has the advantage that it does not write to stdout.

echo test | sudo sponge /tmp/foo

Use the -a option to append to a file instead of overwriting it.

Rollback to Revision 1
Source Link
muru
  • 77.9k
  • 16
  • 212
  • 318

Use spongesponge from the moreutils package. It has the advantage that it does not write to stdout.

    echo test | sudo sponge /tmp/foo
echo test | sudo sponge /tmp/foo

Use the -a option to append to a file instead of overwriting it.

Use sponge from the moreutils package. It has the advantage that it does not write to stdout.

    echo test | sudo sponge /tmp/foo

Use the -a option to append to a file instead of overwriting it.

Use sponge from the moreutils package. It has the advantage that it does not write to stdout.

echo test | sudo sponge /tmp/foo

Use the -a option to append to a file instead of overwriting it.

improved formatting
Source Link

Use spongesponge from the moreutils package. It has the advantage that it does not write to stdout.

echo test | sudo sponge /tmp/foo
    echo test | sudo sponge /tmp/foo

Use the -a option to append to a file instead of overwriting it.

Use sponge from the moreutils package. It has the advantage that it does not write to stdout.

echo test | sudo sponge /tmp/foo

Use the -a option to append to a file instead of overwriting it.

Use sponge from the moreutils package. It has the advantage that it does not write to stdout.

    echo test | sudo sponge /tmp/foo

Use the -a option to append to a file instead of overwriting it.

Source Link
Loading