GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SSAM (1)

NAME

ssam - stream interface to sam

CONTENTS

Synopsis
Description
Examples
Source
See Also
Bugs

SYNOPSIS

ssam [ -n ] [ -e script ] [ -f sfile ] [ file ... ]

DESCRIPTION

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. 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
ssam ’y/[a-zA-Z]+/ c/\n/’ | grep . | sort | uniq -c
  Count frequency of words read from standard input.

SOURCE

/usr/local/plan9/bin/ssam

SEE ALSO

sed(1), sam(1), regexp(7)

Rob Pike, ‘‘The text editor sam’’.

BUGS

Ssam consumes all of standard input before running the script.
Search for    or go to Top of page |  Section 1 |  Main Index


SSAM (1) -->

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.