Hacker News new | past | comments | ask | show | jobs | submit login

Instead of sudo sh -c to sudo the redirects, consider echo 'abcde' |sudo tee /proc/bla. Less nesting :)



Do you mean less syntactical nesting? The pipe to sudo tee creates a new child shell, just as sudo sh -c does.


Yes.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: