diff

diff

אורי uri at speedy.net
Tue Dec 14 09:44:41 IST 2021


Hi,

Actually I prefer the "<(..)" method, because sometimes I want to compare 2
commands:

diff <(pip freeze | sort) <(cat requirements.txt | sort)

Or even use cat and echo to add a specific line to one of the outputs. If I
want the result to be completely null. For example to run in crontab and
send me mail whether it's not null.

אורי
uri at speedy.net


On Tue, Dec 14, 2021 at 9:31 AM Eli Marmor <eli at netmask.it> wrote:

> Use "-" instead the file name of one of both of the files, and pipe your
> output to the diff command.
>
> ‪On Tue, 14 Dec 2021 at 09:12, ‫אורי‬‎ <uri at speedy.net> wrote:‬
>
>> Thank you.
>>
>> אורי
>> uri at speedy.net
>> _______________________________________________
>> Linux-il mailing list
>> Linux-il at cs.huji.ac.il
>> http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20211214/db8d51ad/attachment.html>


More information about the Linux-il mailing list