SSAM(1)
SSAM(1) β the ssam page, bestie
Okay so welcome to SSAM(1) from the General Commands Manual β manual name folded in right here, no boring copied header line, weβre doing this cute. This is the page for ssam, the stream interface to sam, and yes bestie, weβre getting into all of it. π
β¨
πΈ NAME πΈ
ssam β stream interface to sam.
β¨ SYNOPSIS β¨
ssam [ -n ] [ -e script ] [ -f sfile ] [ file ... ]
Copy that exactly, spacing and all. π
π DESCRIPTION π
Okay so Ssam copies the named files (standard input default) to the standard output, edited by a script of sam commands (q.v.). When the script starts, the entire input is selected. Iconic behavior, no notes. β¨
- The
-foption causes the script to be taken from file sfile. - If there is a
-eoption and no-f, the flag-emay be omitted. - The
-noption suppresses the default output.
π¦ EXAMPLES π¦
ssam -n ,10p fileβ Print first 10 lines of file. πssam 'y/[a-zA-Z]+/ c/\n/' *.msβ Print one word per line. β¨ssam 's/\n\n+/\n/g'β Delete empty lines from standard input. π§ssam 's/UNIX/& system/g'β Replace every instance of by β yep, thatβs the original wording, bestie; Iβm not inventing the missing bits πssam 'y/[a-zA-Z]+/ c/\n/' | grep . | sort | uniq -cβ Count frequency of words read from standard input. π₯
π SOURCE π
/bin/ssam β thatβs the source path, periodt. π
π«Ά SEE ALSO π«Ά
π BUGS π
β οΈ Bug tea: Ssam consumes all of standard input before running the script. Thatβs the note, bestie β donβt shoot the messenger. π
π Footer sign-off: source path is /bin/ssam, the page is SSAM(1) from the General Commands Manual, and thereβs no extra date/version line in the original β so this is the whole cute goodbye. π
π¦ where this page comes from
- alpine 3.24: plan9port-doc 0_git20260208-r0 Β· LPL-1.02
- arch rolling: plan9port 20261021-2 Β· custom
- nixos 26.05: plan9port 0-unstable-2025-11-10
- nixos 26.05: plan9port-wayland 0-unstable-2025-11-26
- nixpkgs unstable: plan9port 0-unstable-2025-11-10
- nixpkgs unstable: plan9port-wayland 0-unstable-2025-11-26
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms