Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    blah | sudo tee /some/file > /dev/null
would though. Both are probably fine.


If 'blah' outputs binary data, then that would work, but would spew garbage to the terminal. Piping to 'dd' is probably more efficient regardless.




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

Search: