<div dir="ltr"><div dir="ltr"><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="direction:rtl"><div style="direction:rtl">אורי</div><div style="direction:rtl"><a href="mailto:uri@speedy.net" target="_blank">uri@speedy.net</a></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 14, 2021 at 5:22 PM Daniel Shahaf <<a href="mailto:d.s@daniel.shahaf.name">d.s@daniel.shahaf.name</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">אורי wrote on Tue, 14 Dec 2021 07:44 +00:00:<br>
> Actually I prefer the "<(..)" method, because sometimes I want to compare 2<br>
> commands:<br>
><br>
> diff <(pip freeze | sort) <(cat requirements.txt | sort)<br>
><br>
<br>
Consider s/diff/comm -12/.<br></blockquote><div><br></div><div>???</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
> Or even use cat and echo to add a specific line to one of the outputs. If I<br>
> want the result to be completely null. For example to run in crontab and<br>
> send me mail whether it's not null.<br>
<br>
Careful here. By default, cron jobs run not under your login shell but<br>
under /bin/sh, and it's possible the latter doesn't support «<(…)» even<br>
if the former does.<br></blockquote><div><br></div><div>Yes, I changed crontabs to bash today.</div><div><br></div><div style="direction:rtl">אורי</div></div></div>