alias_qr_rainmaker@lemmy.world to linuxmemes@lemmy.world · 2 days agocat posttitle.txt | grep memelemmy.worldimagemessage-square48fedilinkarrow-up1355
arrow-up1355imagecat posttitle.txt | grep memelemmy.worldalias_qr_rainmaker@lemmy.world to linuxmemes@lemmy.world · 2 days agomessage-square48fedilink
minus-squaresomerandomperson@lemmy.dbzer0.comlinkfedilinkarrow-up10·2 days agowhat about $EDITOR <(cat file)?
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up6·2 days agoWell, when I can just do $EDITOR file…
minus-squarejayands@lemmy.worldlinkfedilinkarrow-up2·1 day agoThe subtle difference is that your $SHELL is responsible for opening (and, iirc, parsing?) the file when you use \<, versus the $EDITOR being the responsible entity.
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up1·21 hours agoOh I get it now. Also, for some reason setting vi as $EDITOR, it is not able to load the contents of the file, unlike vim that does.
minus-squaresomerandomperson@lemmy.dbzer0.comlinkfedilinkarrow-up4·2 days agowe’re talking about a pipeline(-ish) thing here. so just out the cmd that you want to read the output of in the brackets
what about
$EDITOR <(cat file)?Well, when I can just do
$EDITOR file…The subtle difference is that your $SHELL is responsible for opening (and, iirc, parsing?) the file when you use
\<, versus the $EDITOR being the responsible entity.Oh I get it now.
Also, for some reason setting
vias$EDITOR, it is not able to load the contents of the file, unlikevimthat does.we’re talking about a pipeline(-ish) thing here.
so just out the cmd that you want to read the output of in the brackets