Package: moreutils
Version: 0.29
Severity: wishlist

'pee "command1" "command2"' outputs everything from command1, then
everything from command2.  Example:

    % seq 3 | pee "cat" "tac"
    1
    2
    3
    3
    2
    1

There's no switch (I'll call it '-r') to output line #1 from command1
and line #1 from command2, then line #2 from command1 and line #2 from
command #2, etc.  Example:

    % seq 3 | pee -r "cat" "tac"
    1
    3
    2
    2
    3
    1

One of many uses: 'head' & 'tail' could be used to sample or compare the
outputs of similar programs, or different versions of the same program.

Variant: an '-rl' switch to output all line #Ns on the same line, maybe
with an optional delimiter string to separate them.  Example:

    # " : " is the separator.
    % seq 3 | pee -rl " : " "cat" "tac"
        1 : 3
        2 : 2
        3 : 1

Such output would be easy to parse with 'set', 'sed', 'cut', 'printf',
etc.  Uses: culling data from similar utils (or mutually exclusive
switches of a complex util) when you want part of the output of util
#1, and part of the output of util #2, etc.

(Note: the '-rl' switch letters are arbitrary, call 'em anything.)


HTH...


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Shell: /bin/sh linked to /bin/dash

Versions of packages moreutils depends on:
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  perl                          5.8.8-12   Larry Wall's Practical Extraction 

moreutils recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to