1 16e65a6d 2009-09-15 jason.cat .TH SSAM 1
2 16e65a6d 2009-09-15 jason.cat .SH NAME
3 16e65a6d 2009-09-15 jason.cat ssam \- stream interface to sam
4 16e65a6d 2009-09-15 jason.cat .SH SYNOPSIS
11 16e65a6d 2009-09-15 jason.cat .I script
15 16e65a6d 2009-09-15 jason.cat .I sfile
18 16e65a6d 2009-09-15 jason.cat .I file ...
20 16e65a6d 2009-09-15 jason.cat .SH DESCRIPTION
21 16e65a6d 2009-09-15 jason.cat .I Ssam
22 16e65a6d 2009-09-15 jason.cat copies the named
23 16e65a6d 2009-09-15 jason.cat .I files
24 16e65a6d 2009-09-15 jason.cat (standard input default) to the standard output, edited by a script of
25 16e65a6d 2009-09-15 jason.cat .IR sam
26 16e65a6d 2009-09-15 jason.cat commands (q.v.).
27 16e65a6d 2009-09-15 jason.cat When the script starts, the entire input is selected.
30 16e65a6d 2009-09-15 jason.cat option causes the script to be taken from file
31 16e65a6d 2009-09-15 jason.cat .IR sfile .
32 16e65a6d 2009-09-15 jason.cat If there is a
34 16e65a6d 2009-09-15 jason.cat option and no
35 16e65a6d 2009-09-15 jason.cat .BR -f ,
36 16e65a6d 2009-09-15 jason.cat the flag
38 16e65a6d 2009-09-15 jason.cat may be omitted.
41 16e65a6d 2009-09-15 jason.cat option suppresses the default output.
43 16e65a6d 2009-09-15 jason.cat .SH EXAMPLES
45 16e65a6d 2009-09-15 jason.cat .B ssam -n ,10p file
46 16e65a6d 2009-09-15 jason.cat Print first 10 lines of file.
48 16e65a6d 2009-09-15 jason.cat .B ssam 'y/[a-zA-Z]+/ c/\en/' *.ms
49 16e65a6d 2009-09-15 jason.cat Print one word per line.
51 16e65a6d 2009-09-15 jason.cat .B ssam 's/\en\en+/\en/g'
52 16e65a6d 2009-09-15 jason.cat Delete empty lines from standard input.
54 16e65a6d 2009-09-15 jason.cat .B ssam 's/UNIX/& system/g'
55 16e65a6d 2009-09-15 jason.cat Replace every instance of
56 16e65a6d 2009-09-15 jason.cat .L UNIX
58 16e65a6d 2009-09-15 jason.cat .LR "UNIX system" .
60 16e65a6d 2009-09-15 jason.cat .B ssam 'y/[a-zA-Z]+/ c/\en/' | grep . | sort | uniq -c
61 16e65a6d 2009-09-15 jason.cat Count frequency of words read from standard input.
62 16e65a6d 2009-09-15 jason.cat .SH SOURCE
63 16e65a6d 2009-09-15 jason.cat .B \*9/bin/ssam
64 16e65a6d 2009-09-15 jason.cat .SH SEE ALSO
65 16e65a6d 2009-09-15 jason.cat .IR sed (1),
66 16e65a6d 2009-09-15 jason.cat .IR sam (1),
67 16e65a6d 2009-09-15 jason.cat .IR regexp (7)
69 16e65a6d 2009-09-15 jason.cat Rob Pike,
70 16e65a6d 2009-09-15 jason.cat ``The text editor sam''.
71 16e65a6d 2009-09-15 jason.cat .SH BUGS
72 16e65a6d 2009-09-15 jason.cat Ssam consumes all of standard input before running the script.