Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!seismo!sundc!pitstop!sun!morocco!landauer From: landauer@morocco.Sun.COM (Doug Landauer) Newsgroups: comp.lang.c++ Subject: Re: "cut" not needed to run CC Message-ID: <65039@sun.uucp> Date: 19 Aug 88 22:18:16 GMT Article-I.D.: sun.65039 References: <990@acornrc.UUCP> <8270@cup.portal.com> Sender: news@sun.uucp Reply-To: landauer@sun.UUCP (Doug Landauer) Organization: Sun Microsystems, Mountain View Lines: 27 > Bob Weissman (bob@acornrc.uucp) asks: > >The CC script which runs the AT&T C++ compiler makes reference > >to a program called "cut", which does not exist on BSD systems. > > > >What is "cut"? > > From the SunOS 3.2 man page > > cut - remove selected fields from each line of a file Perhaps a more helpful answer is that you can (in this case) replace the cut command cut -d"o" -f2- with a much easier-to-understand *and* more portable *and* shorter sed command: sed 's/^-o//' (All that CC is trying to do here is to turn a "-oFOO" argument into "-o FOO". If you and your users are smart enough to have never thought of using such an argument, then you don't even need to fix the script.) -- Doug Landauer Sun Microsystems, Inc. ARPA Internet: landauer@sun.com Software Products Division UUCP: ...!sun!landauer