SEDAM(1)

πŸ“¦ version 1.0.2, in alpine 3.24

πŸ’… SEDAM(1) β€” General Commands Manual πŸ’…

okay so bestie, this is the SEDAM(1) page β€” yes, that's the manual name right there β€” and it's giving General Commands Manual energy, but make it stream-interface-to-edam cute ✨

🌸 NAME 🌸

sedam β€” stream interface to edam πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

sedam [ -n ] [ -e script ] [ -f sfile ] [ -- ] [ file ...  ]

πŸ’– DESCRIPTION πŸ’–

sedam copies the named files β€” or standard input if you didn't name any, that's the default bestie β€” straight to standard output. The edit magic comes from a script of edam commands (q.v. β€” which see, iykyk) 🫢

When the script starts, the entire input is selected. Like, the whole thing is selected from the jump, no cap πŸ‘‘.

  • -f sfile β€” takes the script from the file sfile. Script? From a file? Obsessed.
  • -e script β€” if there is a -e option and no -f, the -e flag may be omitted β€” so the script can just show up, lowkey.
  • -n β€” suppresses the default output. No default output, periodt.
  • -- β€” signals the end of the commandline options. All following arguments are filenames. That's the rule, bestie.

🌈 EXAMPLES 🌈

okay these examples ate, let's go πŸ“

Print first 10 lines of file. πŸ’–

sedam -n ,10p file

Print one word per line. πŸ¦‹

sedam 'y/[a-zA-Z]+/ c/\n/' *.ms

Delete empty lines from standard input. πŸŽ€

sedam 's/\n\n+/\n/g'

Replace every instance of by β€” yes, that's literally the exact wording on the page, bestie, we're not inventing words 😭

sedam 's/UNIX/& system/g'

Count frequency of words read from standard input. πŸ”₯

sedam 'y/[a-zA-Z]+/ c/\n/' | grep . | sort | uniq -c

πŸ”₯ SEE ALSO πŸ”₯

Go check out sed(1), edam((1)), and regexp((7)) β€” yes, edam((1)) and regexp((7)) really have those double parens, slay ✨

Also this iconic citation:

Rob Pike, ``The text editor sam''.

πŸ’€ BUGS πŸ’€

🚨 BUG ALERT: sedam consumes all of standard input before running the script. So yeah, it's eating the whole snack before it even starts editing β€” no cap, bestie πŸ’€

πŸ’– okay that's the whole SEDAM(1) page β€” the footer is just SEDAM(1), no extra source/version/date tea, so that's the wrap, periodt πŸŽ€βœ¨

πŸ“¦ where this page comes from