home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / next / misc / 22942 < prev    next >
Encoding:
Text File  |  1992-12-11  |  2.1 KB  |  52 lines

  1. Newsgroups: comp.sys.next.misc
  2. Path: sparky!uunet!cs.utexas.edu!uwm.edu!wupost!usc!enterpoop.mit.edu!ira.uka.de!math.fu-berlin.de!fub!tpki.toppoint.de!black.toppoint.de!kris
  3. From: kris@black.toppoint.de (Kristian Koehntopp)
  4. Subject: Re: Is there a "cut" command available for the NeXT ???
  5. Message-ID: <1992Dec11.142738.11686@black.toppoint.de>
  6. X-Excuse: X-Copyright wegen Emma, Suedwestpresse und /C'T/DISKUSSIONEN.
  7. Organization: Toppoint Mailbox e.V.
  8. References: <1992Dec9.030102.5535@leland.Stanford.EDU> <28333@oasys.dt.navy.mil>
  9. Date: Fri, 11 Dec 1992 14:27:38 GMT
  10. X-Copyright: (C) Copyright 1992 Kristian Koehntopp -- All rights reserved.
  11.          Reproduktion, auch auszugsweise, ausserhalb elektronischer,
  12.          nichtkommerzieller Datennetze nur mit ausdruecklichem,
  13.          schriftlichem Einverstaendnis des Autors.
  14. Lines: 36
  15.  
  16. In <28333@oasys.dt.navy.mil> curt@oasys.dt.navy.mil (Curt Welch) writes:
  17. >I think "copy" might be what you are looking for.
  18.  
  19. He isn't looking for copy. There is a "cut" command in System V
  20. UNIX with the following semantics:
  21.  
  22. black> mahaki man cut | col -bf | uniq
  23.  
  24.       CUT(1)           INTERACTIVE UNIX    System             CUT(1)
  25.  
  26.       NAME
  27.            cut - cut out selected fields of    each line of a file
  28.  
  29.       SYNOPSIS
  30.            cut -clist [file    ...]
  31.            cut -flist [-dchar] [-s]    [file ...]
  32.  
  33.       DESCRIPTION
  34.            Use cut to cut out columns from a table or fields from each
  35.            line of a file; in data base parlance, it implements the
  36.            projection of a relation.  The fields as    specified by list
  37.            can be fixed length, i.e., character positions as on a
  38.            punched card (-c    option), or the    length can vary    from line
  39.            to line and be marked with a field delimiter character like
  40.            tab (-f option).     cut can be used as a filter; if no files
  41.            are given, the standard input is    used.  In addition, a file
  42.            name of ``-'' explicitly    refers to standard input.
  43. [ ... ]
  44. black>
  45.  
  46. Kristian
  47. -- 
  48. Kristian Koehntopp, Harmsstrasse 98, 2300 Kiel, +49 431 676689
  49. "Convection Machine is a trademark of Thoughtless Machines, Inc., a joint-
  50.  venture of Hot-Air Associates and Air Heads International using vaporware
  51.  from the Neural Network Corporation." -- RFC1217
  52.