# This is a shell archive. Remove anything before this line, # then unpack it by saving it in a file and typing "sh file". # # Wrapped by Rick Walker on Wed Oct 23 13:10:40 1996 # # This archive contains: # list1sed.cmd cpdir.sh do_sed.sh rename.sh # LANG=""; export LANG PATH=/bin:/usr/bin:$PATH; export PATH rm -f /tmp/uud$$ (echo "begin 666 /tmp/uud$$\n#;VL*n#6%@x\n \nend" | uudecode) >/dev/null 2>&1 if [ X"`cat /tmp/uud$$ 2>&1`" = Xok ] then unpacker=uudecode else echo Compiling unpacker for non-ascii files pwd=`pwd`; cd /tmp cat >unpack$$.c <<'EOF' #include #define C (*p++ - ' ' & 077) main() { int n; char buf[128], *p, a,b; scanf("begin %o ", &n); gets(buf); if (freopen(buf, "w", stdout) == NULL) { perror(buf); exit(1); } while (gets(p=buf) && (n=C)) { while (n>0) { a = C; if (n-- > 0) putchar(a << 2 | (b=C) >> 4); if (n-- > 0) putchar(b << 4 | (a=C) >> 2); if (n-- > 0) putchar(a << 6 | C); } } exit(0); } EOF cc -o unpack$$ unpack$$.c rm unpack$$.c cd $pwd unpacker=/tmp/unpack$$ fi rm -f /tmp/uud$$ echo x - list1sed.cmd '[non-ascii]' $unpacker <<'@eof' begin 775 list1sed.cmd M"YH=&TC"G,C2]P=6)L:6-?:'1M;"]C<"]H=&UL+VUA+3E=6S M.5TN:'1M;"(Ocpdir.sh <<'@EOF' #!/bin/ksh # copy files/tree from directory $1 to $2 (cd $1 ; tar cf - . ) | (cd $2 ; tar xf - ) @EOF chmod 775 cpdir.sh echo x - do_sed.sh cat >do_sed.sh <<'@EOF' #!/bin/ksh # used to apply the sed commands in file arg1 to the file named in arg2 # make multiple passes if pattern file is greater than 100 line limit rm -f /tmp/sedtmp* split -l 95 $1 /tmp/sedtmp$$ for sedfile in /tmp/sedtmp* do sed -f $sedfile $2 > /tmp/--temp--.--- mv /tmp/--temp--.--- $2 done rm -f /tmp/sedtmp* @EOF chmod 775 do_sed.sh echo x - rename.sh '[non-ascii]' $unpacker <<'@eof' begin 775 rename.sh M(R$O8FEN+V-S: HC(')E;F%M93H@82!#('-H96QL('-C7-T96T@5BP@02!02!T;R!T:&4@&ET(# *"G5S86=E.@IE8VAO(")5