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.
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.
I had an intermediate not understand how to read a pipe-delimited text file.
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.
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.
The former.