From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fdb0e,cdca3dc8d6167cd4 X-Google-Attributes: gidfdb0e,public X-Google-Thread: 1164f8,cdca3dc8d6167cd4 X-Google-Attributes: gid1164f8,public X-Google-Thread: f7344,a808e23c428d1184 X-Google-Attributes: gidf7344,public X-Google-ArrivalTime: 2002-01-07 12:07:49 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!out.nntp.be!propagator-SanJose!in.nntp.be!telocity-west!DirecTV-DSL!gestalt.direcpc.com!cyclone2.usenetserver.com!usenetserver.com!news01.optonline.net!news02.optonline.net.POSTED!not-for-mail From: Arthur Krewat Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Organization: Kilonet.net Message-ID: <3C39FD8A.BE8526B5@bartek.dontspamme.net> References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C338089.1C12E6FA@trailing-edge.com> <3C39F2ED.DD935983@bartek.dontspamme.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.78 [en] (X11; U; SunOS 5.8 i86pc) X-Accept-Language: en Date: Mon, 07 Jan 2002 20:03:05 GMT NNTP-Posting-Host: 24.186.100.134 X-Trace: news02.optonline.net 1010433785 24.186.100.134 (Mon, 07 Jan 2002 15:03:05 EST) NNTP-Posting-Date: Mon, 07 Jan 2002 15:03:05 EST Xref: archiver1.google.com comp.os.vms:58863 alt.sys.pdp10:9234 comp.sys.dec:11147 Arthur Krewat wrote: > > Bob Koehler wrote: > > > > Then maybe you know something I don't. I've got this little ksh > > function which emulates some features of DCL copy that the shell > > won't do for me on one line. But I can't "copy a\ a.c b", and > > I've tried all kinds of escape and quotes with the file name a\ a.c > > > > The following works w/Solaris but should work on any system with bourne > shell. Note the double quotes and the use of $NF w/awk to pick off the > LAST field to get the extension - this allows dots in the file name > too (YMMV - unspecified behavior if an extension is not on the source > file). > > i=`echo "$1" | awk -F. '{print $NF}'` > I should note that this should also read: j=`echo "$2" | awk -F. '{print $NF}'` my typo aak