UREAD(1)
π UREAD(1) β General Commands Manual π
okay bestie, real talk: this page is filed under UREAD(1) but the star of the show is a lil program called ustrip. naming chaos? iconic. let's go π¦
β¨ NAME β¨
utrip β strips record length information from a Fortran unformatted file π
πΈ SYNOPSIS πΈ
ustrip [ -x ] [ filename ]
π DESCRIPTION π
so here's the vibe: ustrip reads in a file that was created with Fortran's unformatted IO, and it strips the record size flags that pad each record. why do we care?? because this is mainly of use for reading binary data into a C program. periodt. π₯
the -x option tells ustrip to byte swap the record flags, which lets you peek at big endian data on a little endian machine, and vis versa. (yes, "vis versa", that's what it says, we don't fix it, we respect it π) π
and the file name? you may specify it on the command line. if you don't, the data gets read in from standard input and written out to standard output. streamy. β¨
β οΈ NOTE β οΈ
if you ever see this error message:
uread: data larger than file length
bestie that often means the file you're reading has the opposite byte "sex" to the platformureadis being run on π try the-xflag and see if that's the case!! π«Ά
π SEE ALSO π
π AUTHOR π
S.E. Norris s.norris@auckland.ac.nz β thank you for your service, legend π
and that's the whole page, bestie!! this was UREAD(1) from the General Commands Manual section, and yeah β the page is literally headed UREAD(1) at the bottom too, which is the whole source/version/date situation we got here: just the name, twice, no cap πβ¨ go forth and unpad those records, you absolute main character ππ
π¦ where this page comes from
- fedora 43: uread 0-0.35.20081006.fc43 Β· GPL-1.0-or-later
- fedora 44: uread 0-0.36.20081006.fc44 Β· GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms