Path: utzoo!attcan!uunet!munnari.oz.au!bruce!cechew From: cechew@bruce.cs.monash.OZ.AU (Earl Chew) Newsgroups: comp.os.minix Subject: shutdown -- sh-umount using sed Message-ID: <2591@bruce.cs.monash.OZ.AU> Date: 3 Jul 90 22:27:26 GMT Organization: Monash Uni. Computer Science, Australia Lines: 51 Here is a diff for sh-umount.sh which was posted as part of the recent shutdown program. It relied on [g]awk to edit and reverse the list of mounted file systems. I have altered it to provide exactly the same functionality (edit *and* reverse) using sed, thus making it more useful for PC users who live with poor man's awk (aka sed). Earl ------------------------------------------------------------------------------- begin 600 sh-umount.cdiff M*BHJ('-H+75M;W5N="YS:`E4=64@2G5L("`S(#(Q.C0Y.C(U(#$Y.3`*+2TM M('-H+75M;W5N=`E4=64@2G5L("`S(#(R.C0T.C`P(#$Y.3`**BHJ*BHJ*BHJ M*BHJ*BHJ"BHJ*B`S+#(S("HJ*BH*("`C($UO=6YT(&5C:&]S("]E=&,O;71A M8B!W:&EC:"!C;VYT86ENR!I M(#T@,"!](%P*(2`O:7,@;6]U;G1E9"\)>R!AR!W:&EL92`H:2`A/2`P*2!P