this post was submitted on 07 May 2025
1108 points (96.9% liked)

Programmer Humor

23119 readers
780 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] vithigar@lemmy.ca 1 points 1 day ago (1 children)

I had an intermediate not understand how to read a pipe-delimited text file.

[–] Zagorath@aussie.zone 6 points 1 day ago (2 children)

Read as in, with their eyes? Or how to ingest it into some other app/script? Cos I'm vaguely aware that awk can be used in some way for this, but wouldn't have a clue how.

[–] barsoap@lemm.ee 3 points 23 hours ago

awk is practically made for record processing, within the shell you can set $IFS. The reason so many ancient UNIX file formats use : as separator is because that's the default setting of $IFS.

It's all a huge PITA, though. I mean there's a reason why people started using perl instead. Nushell is great for that kind of stuff, even more so if you have random json or such lying around it loads just as easily. "Everything is a string" was a mistake.

[–] vithigar@lemmy.ca 2 points 1 day ago