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:46:21 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!news.binc.net!young_r From: young_r@encompasserve.org (Rob Young) Newsgroups: comp.os.vms,alt.sys.pdp10,comp.sys.dec Subject: Re: historical evidence of what went wrong at DEC Date: 7 Jan 2002 14:46:17 -0600 Organization: Encompasserve Message-ID: References: <3roT7.207043$tf5.13617499@bin5.nnrp.aus1.giganews.com> <3C338089.1C12E6FA@trailing-edge.com> <3C39F2ED.DD935983@bartek.dontspamme.net> <3C39FD8A.BE8526B5@bartek.dontspamme.net> NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1010436380 9814 192.135.80.34 (7 Jan 2002 20:46:20 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Mon, 7 Jan 2002 20:46:20 +0000 (UTC) Xref: archiver1.google.com comp.os.vms:58876 alt.sys.pdp10:9239 comp.sys.dec:11153 In article <3C39FD8A.BE8526B5@bartek.dontspamme.net>, Arthur Krewat writes: > Arthur Krewat wrote: >> >> 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 > That's okay. I understand. It is not unlike how a typo totally wiped out an entire server with 10 years worth of databases on it. The professional that did that is a bright guy 10-15 years experience. The second time it happened, the person wasn't nearly as experienced but the same result. Two different Unickses, about 12-18 months apart.... gotta watch those rm -rf commands in shells! But hey, the long back and forth about that 2-3 months ago here resolved nothing... but it didn't change the fact it happens, nor the fact even bright, seasoned professionals screw up occasionally and Unix can *really* hang you out to dry. Rob