[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to compare the output of two commands?



Am 2006-04-17 08:07:16, schrieb Sonixxfx:
> Hi,
> 
> I am using two large commands that both output a pretty large amount of
> text. I want to compare these two lists of text, but I do not want to
> redirect it to textfiles to be able to do that. I have tried to compare the
> output with diff, by using some bash functions, but I keep getting errors.
> So does someone know of a way to compare the output?

    diff `command opts` `command opts` |less

Greetings
    Michelle Konzack


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)



Reply to: