echo bug?

Nils Kassube kassube at gmx.net
Sat Sep 12 17:40:24 UTC 2009


Karl Auer wrote:
>    #!/bin/sh
>    cat >> $1
>
> Now you can do this:
>
>    echo blah | sudo acat some_file
>
> ... and "blah" will be appended to some_file, even though it is owned
> by root.

Great - a shell script version of the tee program. :)


Nils





More information about the ubuntu-users mailing list