You're viewing a single thread.
tee isn't exactly the opposite of cat but I can't remember a command that only redirects screen output to a file.
What is up, tee?
edit: what's the opposite of "cd .."?
23 1 Replycat is for concatenating files, so the opposite would be something that breaks a stream up into multiple files.
5 0 ReplyOh, you use Arch?
3 0 ReplyHeh, no, but they do have a nice set of man pages and other documentation online. I prefer NixOS. Easier keeping track of configuration, easier rolling back of (and experimentation with) new stuff.
2 0 Reply
Hah, forgot about tac
3 0 ReplyI mean... it's nice that it exists and all, but I can't really think of many useful usecases.
3 0 ReplyI think I only ever used it in an intro to shell scripting where we (almost) recreated the function of tail
2 0 ReplySomething like
tac | head | tac
, I guess? Yes, that's a valid use case indeed :)2 0 Reply
tac
is a real command and does exactly what you think it is2 1 Reply
How about tac which prints lines but last to first.
4 0 ReplyIt prints to stdout. I’d say the opposite is read, which reads from stdin.
3 0 ReplyHmm, maybe pwd?
2 0 Reply2 0 ReplyThere’s pushd where the opposite is clearly popd.
2 0 Reply