this post was submitted on 14 May 2024
1354 points (99.1% liked)

Programmer Humor

32558 readers
526 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] xavier666@lemm.ee 9 points 6 months ago (2 children)

cat file.json | jq also works

[–] expr@programming.dev 4 points 6 months ago* (last edited 6 months ago)

https://porkmail.org/era/unix/award#cat

jq < file.json

cat is for concatenating multiple files, not redirecting single files.

[–] jimbolauski@lemm.ee 2 points 6 months ago (1 children)

Render Media works the best

rm file.json

[–] xavier666@lemm.ee 3 points 6 months ago

Yes, Render Media is the best. It's hard to believe that not many people know about this tool. It's also natively installed in all Linux distros.