home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!mcsun!sunic!ericom!eos.ericsson.se!etxmesa
- From: etxmesa@eos.ericsson.se (Michael Salmon)
- Subject: Re: Strange behavior with paste command
- Message-ID: <1992Jul27.150242.27569@ericsson.se>
- Sender: news@ericsson.se
- Nntp-Posting-Host: eos6c02.ericsson.se
- Reply-To: etxmesa@eos.ericsson.se (Michael Salmon)
- Organization: Ericsson Telecom AB
- References: <1992Jul27.141928.28250@news.acns.nwu.edu>
- Date: Mon, 27 Jul 1992 15:02:42 GMT
- Lines: 53
-
- In article <1992Jul27.141928.28250@news.acns.nwu.edu>, navarra@casbah.acns.nwu.edu (John Navarra) writes:
- |> I don't get this! Why does the following happen with the paste command:
- |>
- |> $ paste file1 file2 file3 > file.results
- |> $ cat file.results
- |> lsr005-1.wav 5.050659E-03 8.773804E-03
- |> lsr005-2.wav 9.506226E-03 1.493835E-02
- |> lsr005-3.wav .0128479 1.991272E-02
- |> lsr005-4.wav 1.850891E-02 .0272522
- |> lsr005-5.wav 2.275085E-02 3.291321E-02
- |> lsr025-1.wav 4.780579E-02 6.880188E-02
- |> lsr025-2.wav 6.732178E-02 9.716797E-02
- |> lsr025-3.wav 9.461975E-02 .1350403
- |> lsr025-4.wav .1144867 .163559
- |> lsr025-5.wav .1334534 .1909943
- |> lsr1-1.wav .3167419 .4694824
- |> lsr1-2.wav .5150909 .739624
- |> lsr1-3.wav .7581482 .9957733
- |> lsr1-4.wav 1.062622 1.255859
- |> lsr1-5.wav 1.37088 1.504074
- |>
- |>
- |> What's up with the last line? Is there some way to make this print
- |> out right?
-
- From the man page for paste:
-
- DESCRIPTION
- In the first two forms, paste concatenates corresponding
- lines of the given input files filename1, filename2, etc.
- It treats each file as a column or columns of a table and
- pastes them together horizontally (parallel merging). It is
- the counterpart of cat(1V) which concatenates vertically,
- that is, one file after the other. In the last form above,
- paste replaces the function of an older command with the
- same name by combining subsequent lines of the input file
- (serial merging). In all cases, lines are glued together
- with the TAB character, or with characters from an option-
- ally specified list. paste can be used as a filter, if - is
- used in place of a filename.
-
- 1.37088 is 7 characters long so tab is a single space.
-
- --
-
- Michael Salmon
-
- #include <standard.disclaimer>
- #include <witty.saying>
- #include <fancy.pseudo.graphics>
-
- Ericsson Telecom AB
- Stockholm
-