UREAD(1)

๐Ÿ“ฆ version 0, in fedora 43, fedora 44

๐Ÿ’– UREAD(1) โ€” the manual page, but make it make sense ๐Ÿ’–

okay so bestie, welcome to the UREAD glow-up. It's a General Commands Manual girlie and she is so here to help you peek inside your Fortran files. โœจ


๐ŸŒธ NAME ๐ŸŒธ

uread โ€” reads a Fortran unformatted file ๐Ÿ’…


๐ŸŽ€ SYNOPSIS ๐ŸŽ€

uread [ -x ] [ filename ]

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

uread reads a file that was created with Fortran's unformatted IO. For every record it finds, it prints the size of that record in bytes straight to your screen, and then it throws out its best guesses about what sort of data might be hiding inside that record. She's basically a psychic but for bytes. ๐Ÿ”ฎ

Here's the vibe check on those guesses:

  • *2 โ€” integer*2, logical*2 data
  • *4 โ€” integer, logical, real data
  • *8 โ€” integer*8, real*8, double precision, complex data
  • *16 โ€” real*16, extended precision, double complex data

Also, when data gets marked with char, that means it contains only writable ASCII characters and white space โ€” so like, it's probably character data. Not a drill, just characters. ๐Ÿ“

The -x option tells uread to byte swap the input record data. That lets you examine big endian data on a little endian machine, and vice versa. Iconic. It's giving "translator for endian girlies". ๐Ÿ”ฅ

You can drop the file name right there on the command line. If you don't, the data gets read in from the standard input. Either way, she's eating. ๐Ÿ˜Œ


โœจ OPTIONS โœจ

  • -x โ€” byte swaps the input record data, so you can look at big endian data on a little endian machine, and vis versa. ๐Ÿ‘‘

๐Ÿ’€ NOTE ๐Ÿ’€

If you ever see this error message:

uread: data larger than file length

...then don't panic, bestie, it often means the file you're reading has the opposite byte "sex" to the platform you're running uread on. Try the -x flag and see if that's the case. Like, it's lowkey a compatibility moment, not a crisis. ๐Ÿซถ


๐Ÿ‘‘ SEE ALSO ๐Ÿ‘‘

ustrip(1), uswap(1)


๐ŸŒˆ AUTHOR ๐ŸŒˆ

S.E. Norris s.norris@auckland.ac.nz


and that's the whole page, bestie โ€” she lives in the General Commands Manual, authored with love by S.E. Norris, and yes we're still stanning. periodt. ๐Ÿ’–โœจ๐ŸŽ€

๐Ÿ“ฆ where this page comes from