4 ms·
> I've always found it odd that there isn't a standard command to write stdin to a file that doesn't also write it to stdout If you happen to have moreutils in
by TheDong 9mo ago
> I've always found it odd that there isn't a standard command to write stdin to a file that doesn't also write it to stdout
If you happen to have moreutils installed, you can do that with pee
echo $NUM_PAGES | sudo pee 'cat > /proc/sys/vm/nr_hugepages'
- direwolf20 9mo agowhy not write sh -c then?
- TheDong 9mo agoBecause 'sh' isn't in moreutils and is harder to remember, next question. Why use something portable when you can use cat pee?
- semiquaver 8mo agoPersonally? Because I hate the smell.