Path: utzoo!mnetor!uunet!husc6!rutgers!mcnc!ece-csc!ncrcae!ncr-sd!crash!jkimble From: jkimble@crash.cts.com (Jim Kimble) Newsgroups: comp.unix.xenix Subject: Re: cut on xenix? Message-ID: <2500@crash.cts.com> Date: 7 Feb 88 03:54:50 GMT References: <116@corum.UUCP> <1144@ucsfcca.ucsf.edu> Reply-To: jkimble@crash.CTS.COM (Jim Kimble) Organization: Crash TS, San Diego, CA Lines: 32 Keywords: what's it called? Summary: Not always standard In article <1144@ucsfcca.ucsf.edu> root@cca.ucsf.edu (Computer Center) writes: >In article <116@corum.UUCP>, root@corum.UUCP (System Administration) writes: >> sigh... what is the equivalent function for "cut" on xenix? i have a bunch of >> shell scripts that i ported over from a vax that has oodles of "cut"s in them. >> >The equivalent of System V "cut" on Xenix is "cut". It is part of the >text processing utilities package. > Mr. Computer Center may have a copy of TI's "enhanced" version of SCO Xenix. We use it at the office and both cut and paste are not included with the OS; you have the buy the "Text Processing Package." When I ported over a SysV application that was using cut every couple lines, I just substituted the lines with a "sed" script. Something to the effect of: set cow = `tty | cut -c6-` to set cow = `tty | sed 's/.dev.//g'` Although it's a really dirty work-around, it works. --Jim Kimble "I used to be into necrophillia, flagellation, and beastiality -- but my friends said I was just beating a dead horse." UUCP: {hplabs!hp-sdd, sdcsvax, nosc}!crash!jkimble ARPA: crash!jkimble@nosc INET: jkimble@crash.CTS.COM