this post was submitted on 31 Aug 2024
657 points (96.3% liked)

Microblog Memes

5392 readers
3852 users here now

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, ~~Twitter~~ X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 22 points 2 weeks ago* (last edited 2 weeks ago) (5 children)

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 .."?

[–] [email protected] 5 points 2 weeks ago (2 children)

cat is for concatenating files, so the opposite would be something that breaks a stream up into multiple files.

[–] [email protected] 8 points 2 weeks ago* (last edited 2 weeks ago) (2 children)

So, split.

Edit: although there's also tac, which could fit the bill as well.

[–] [email protected] 3 points 2 weeks ago (1 children)
[–] [email protected] 2 points 2 weeks ago

Heh, 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.

[–] [email protected] 3 points 2 weeks ago (1 children)
[–] [email protected] 3 points 2 weeks ago (1 children)

I mean... it's nice that it exists and all, but I can't really think of many useful usecases.

[–] [email protected] 2 points 2 weeks ago (1 children)

I think I only ever used it in an intro to shell scripting where we (almost) recreated the function of tail

[–] [email protected] 2 points 2 weeks ago

Something like tac | head | tac, I guess? Yes, that's a valid use case indeed :)

[–] [email protected] 1 points 2 weeks ago

tac is a real command and does exactly what you think it is

[–] zero_spelled_with_an_ecks 4 points 2 weeks ago

How about tac which prints lines but last to first.

[–] [email protected] 3 points 2 weeks ago

It prints to stdout. I’d say the opposite is read, which reads from stdin.

[–] [email protected] 2 points 2 weeks ago (1 children)
[–] [email protected] 2 points 2 weeks ago

There’s pushd where the opposite is clearly popd.

[–] [email protected] 2 points 2 weeks ago

Hmm, maybe pwd?