最近碰到的小麻烦和解决方式~

1.sudo -S 可以进行用管道传递参数

-S          The -S (stdin) option causes sudo to read the password from the standard input instead of the terminal device.  The password

                   must be followed by a newline character.

 

2.追加文本到textview中

http://www.xuebuyuan.com/2104131.html 用textstorage,很方便

原文地址:https://www.cnblogs.com/GrowUP-EveryDay/p/5888918.html