landauer@morocco.Sun.COM (Doug Landauer) (08/20/88)
> 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