From f220aeee77797ddec336cb108843b11e9e0dda86 Mon Sep 17 00:00:00 2001 From: Stanley Lieber Date: Thu, 11 Jun 2020 23:25:45 -0400 Subject: [PATCH] remove ssam: it is included in 9base, frontbase, and plan9port (thanks, sl) --- bin/ssam | 56 -------------------------------------------------------- 1 file changed, 56 deletions(-) delete mode 100755 bin/ssam diff --git a/bin/ssam b/bin/ssam deleted file mode 100755 index 501cf9e..0000000 --- a/bin/ssam +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/rc -# ssam - stream interface to sam -rfork e - -fn enosam { echo ssam: sam not found >[1=2] } -for(i in `{whatis sam}){ - if(test -x $i) - j=1 -} -if(~ $#j 0){ - enosam - exit enosam -} - -flagfmt='n,e script,f sfile' -args='[ file ... ]' -argv0=$0 -fn usage { echo usage: $argv0 '[ -n ] [ -e script ] [ -f sfile ] [ file ... ]' >[1=2] } -if(! ifs=() eval `{aux/getflags $*}){ - usage - exit usage -} - -if(~ $#flage 0 && ~ $#flagf 0) { - if(~ $#* 0) { - usage - exit usage - } - flage=$1 - shift -} - -if(~ $#TMPDIR 0) - TMPDIR=/tmp -if(~ $#user 0) - user=$USER -tmp=$TMPDIR/ssam.tmp.$user.$pid -cat $* >$tmp - -{ - # select entire file - echo ',{' - echo k - echo '}' - echo 0k - - # run scripts, print - if(! ~ $#flagf 0) - cat $flagf - if(! ~ $#flage 0) - echo $flage - if(~ $#flagn 0) - echo , -} | sam -d $tmp >[2]/dev/null - -rm -f $tmp