SEDAM(1)
π
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 filesfile. Script? From a file? Obsessed.-e scriptβ if there is a-eoption and no-f, the-eflag 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
- alpine 3.24: edam-doc 1.0.2-r1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms