diff

diff

אורי uri at speedy.net
Tue Dec 14 17:32:17 IST 2021


אורי
uri at speedy.net


On Tue, Dec 14, 2021 at 5:22 PM Daniel Shahaf <d.s at daniel.shahaf.name>
wrote:

> אורי wrote on Tue, 14 Dec 2021 07:44 +00:00:
> > Actually I prefer the "<(..)" method, because sometimes I want to
> compare 2
> > commands:
> >
> > diff <(pip freeze | sort) <(cat requirements.txt | sort)
> >
>
> Consider s/diff/comm -12/.
>

???


>
> > 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.
>
> Careful here.  By default, cron jobs run not under your login shell but
> under /bin/sh, and it's possible the latter doesn't support «<(…)» even
> if the former does.
>

Yes, I changed crontabs to bash today.

אורי
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20211214/f7f0dffe/attachment.html>


More information about the Linux-il mailing list