zephyr@lemmy.world to Programming@programming.dev · 3 years agoHow do you shell expand your variables and why?lemmy.worldimagemessage-square31linkfedilinkarrow-up168arrow-down14
arrow-up164arrow-down1imageHow do you shell expand your variables and why?lemmy.worldzephyr@lemmy.world to Programming@programming.dev · 3 years agomessage-square31linkfedilink
minus-squarethingsiplay@kbin.sociallinkfedilinkarrow-up5arrow-down2·edit-23 years ago@ilega_dh You don’t need cat in cases when grep "d" alphabet.txt can read from file too. Edit: But obviously your comment was more of a joke to over complicate it. So never mind then.
minus-squaregendulf@kbin.sociallinkfedilinkarrow-up3·3 years agoTo be safe, should probably output grep to a file, then cat that.
minus-squareilega_dh@feddit.nllinkfedilinkarrow-up1·3 years agoAgreed. Everything in Linux is a file so let’s keep it that way.
minus-squareLil' Bobby Tables@programming.devlinkfedilinkarrow-up3·3 years agoDamn it, I’m almost out of A4 paper though.
@ilega_dh You don’t need
catin cases whengrep "d" alphabet.txtcan read from file too. Edit: But obviously your comment was more of a joke to over complicate it. So never mind then.To be safe, should probably output grep to a file, then cat that.
Agreed. Everything in Linux is a file so let’s keep it that way.
Damn it, I’m almost out of A4 paper though.