4 ms·
I do this in terminals: cat > /dev/null Type whatever you want, then control-D to end.
by symkat 14y ago
I do this in terminals:
cat > /dev/null
Type whatever you want, then control-D to end.
- oftenwrong 14y agoThat is a UUOC. This... > /dev/null ...does the same thing.
- tedunangst 14y agoNo, it doesn't. It just drops you to another shell prompt.
- jasonm23 14y agoNot in zsh it doesn't. (tip: it's a zsh thing.)
- tedunangst 14y agooh, well, unspecified shell snippets are usually assumed to be some bourne derivative, in which case the cat is necessary.
- jasonm23 14y agoAgreed, just adding the caveat.
- oftenwrong 14y agoMy bad.