Path: utzoo!mnetor!uunet!husc6!bbn!rochester!udel!gatech!mcnc!decvax!ucbvax!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!sdcrdcf!otto!convex!authorplaceholder From: cuddy@convex.UUCP Newsgroups: comp.binaries.ibm.pc Subject: Re: Thanks, I'd rather do it myself Message-ID: <92500007@convex> Date: 8 Apr 88 20:11:00 GMT References: <2237@ttidca.TTI.COM> Lines: 30 Nf-ID: #R:ttidca.TTI.COM:-223700:convex:92500007:000:845 Nf-From: convex.UUCP!cuddy Apr 8 15:11:00 1988 > ...Inquiry to three local gurus failed to produce a simple one-line > shell command alternative.... > ... 9758 has been posted as the length of the extraction program... > Usage : lobotomy -9758 skyplot.arc (uudecoded first!) try tail +7959c skyplot.exe > skyplot.arc or as a shell script: ---lobot.sh----- #!/bin/csh -f if ( $#argv != "3" ) then echo "Usage: lobotomy [bytes] [infile] [outfile]" exit 1 endif @ argv[1]++ tail +$1c $2 > $3 ---------------------- chmod 775 lobot.sh Usage: lobot.sh [bytes] [infile] [outfile] This works in 4.3BSD. Check to make sure that your tail can do n characters. (ours does n characters words or lines--I don't think it's a local enhancement although our company is prone to doing such things). Mike Cuddy, CONVEX Computer Corp {ihnp4,sun,allegra,uiucdcs}!convex!cuddy