home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9446 < prev    next >
Encoding:
Text File  |  1992-07-27  |  2.5 KB  |  67 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
  3. From: etxmesa@eos.ericsson.se (Michael Salmon)
  4. Subject: Re: Strange behavior with paste command
  5. Message-ID: <1992Jul27.150242.27569@ericsson.se>
  6. Sender: news@ericsson.se
  7. Nntp-Posting-Host: eos6c02.ericsson.se
  8. Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
  9. Organization: Ericsson Telecom AB
  10. References:  <1992Jul27.141928.28250@news.acns.nwu.edu>
  11. Date: Mon, 27 Jul 1992 15:02:42 GMT
  12. Lines: 53
  13.  
  14. In article <1992Jul27.141928.28250@news.acns.nwu.edu>, navarra@casbah.acns.nwu.edu (John Navarra) writes:
  15. |> I don't get this! Why does the following happen with the paste command:
  16. |> 
  17. |> $ paste file1 file2 file3 > file.results
  18. |> $ cat file.results
  19. |> lsr005-1.wav    5.050659E-03    8.773804E-03
  20. |> lsr005-2.wav    9.506226E-03    1.493835E-02
  21. |> lsr005-3.wav    .0128479        1.991272E-02
  22. |> lsr005-4.wav    1.850891E-02    .0272522
  23. |> lsr005-5.wav    2.275085E-02    3.291321E-02
  24. |> lsr025-1.wav    4.780579E-02    6.880188E-02
  25. |> lsr025-2.wav    6.732178E-02    9.716797E-02
  26. |> lsr025-3.wav    9.461975E-02    .1350403
  27. |> lsr025-4.wav    .1144867        .163559
  28. |> lsr025-5.wav    .1334534        .1909943
  29. |> lsr1-1.wav      .3167419        .4694824
  30. |> lsr1-2.wav      .5150909        .739624
  31. |> lsr1-3.wav      .7581482        .9957733
  32. |> lsr1-4.wav      1.062622        1.255859
  33. |> lsr1-5.wav      1.37088 1.504074
  34. |> 
  35. |> 
  36. |> What's up with the last line? Is there some way to make this print  
  37. |> out right?
  38.  
  39. From the man page for paste:
  40.  
  41. DESCRIPTION
  42.      In the first two  forms,  paste  concatenates  corresponding
  43.      lines  of  the  given input files filename1, filename2, etc.
  44.      It treats each file as a column or columns of  a  table  and
  45.      pastes them together horizontally (parallel merging).  It is
  46.      the counterpart of cat(1V)  which  concatenates  vertically,
  47.      that  is, one file after the other.  In the last form above,
  48.      paste replaces the function of an  older  command  with  the
  49.      same  name  by  combining subsequent lines of the input file
  50.      (serial merging).  In all cases, lines  are  glued  together
  51.      with  the  TAB character, or with characters from an option-
  52.      ally specified list.  paste can be used as a filter, if - is
  53.      used in place of a filename.
  54.  
  55. 1.37088 is 7 characters long so tab is a single space.
  56.  
  57. -- 
  58.  
  59. Michael Salmon
  60.  
  61. #include    <standard.disclaimer>
  62. #include    <witty.saying>
  63. #include    <fancy.pseudo.graphics>
  64.  
  65. Ericsson Telecom AB
  66. Stockholm
  67.