1358
you are viewing a single comment's thread
view the rest of the comments
[-] fmstrat@lemmy.nowsci.com 24 points 5 months ago
[-] bjornsno@lemm.ee 12 points 5 months ago

Except if it's a single line file, only god can help you then. (Or running prettier -w on it before opening it or whatever.)

[-] xavier666@lemm.ee 9 points 5 months ago

cat file.json | jq also works

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

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

jq < file.json

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

load more comments (2 replies)
load more comments (7 replies)
load more comments (7 replies)
this post was submitted on 14 May 2024
1358 points (99.1% liked)

Programmer Humor

32281 readers
1244 users here now

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

Rules:

founded 5 years ago
MODERATORS