@zephyr@lemmy.world to Programming@programming.dev • 10 months agoHow do you shell expand your variables and why?lemmy.worldimagemessage-square27fedilinkarrow-up166cross-posted to: shell@programming.dev
arrow-up166imageHow do you shell expand your variables and why?lemmy.world@zephyr@lemmy.world to Programming@programming.dev • 10 months agomessage-square27fedilinkcross-posted to: shell@programming.dev
minus-squarethingsiplaylinkfedilink5•edit-210 months 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-squaregendulflinkfedilink3•10 months agoTo be safe, should probably output grep to a file, then cat that.
minus-square@ilega_dh@feddit.nllinkfedilink2•10 months agoAgreed. Everything in Linux is a file so let’s keep it that way.
@ilega_dh You don’t need
cat
in cases whengrep "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.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.
deleted by creator