SSAM(1)

πŸ“¦
version 0_git20260208 Β· 2 versions
, in alpine 3.24, arch rolling, nixos 26.05, nixpkgs unstable

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 -f option causes the script to be taken from file sfile.
  • If there is a -e option and no -f, the flag -e may be omitted.
  • The -n option 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. πŸ’–