| ssam \- stream interface to sam |
| (standard input default) to the standard output, edited by a script of |
| When the script starts, the entire input is selected. |
| option causes the script to be taken from file |
| option suppresses the default output. |
| Print first 10 lines of file. |
| .B ssam 'y/[a-zA-Z]+/ c/\en/' *.ms |
| .B ssam 's/\en\en+/\en/g' |
| Delete empty lines from standard input. |
| .B ssam 's/UNIX/& system/g' |
| Replace every instance of |
| .B ssam 'y/[a-zA-Z]+/ c/\en/' | grep . | sort | uniq -c |
| Count frequency of words read from standard input. |
| Ssam consumes all of standard input before running the script. |