zephyr@lemmy.world to Programming@programming.dev · 1 year agoHow do you shell expand your variables and why?lemmy.worldimagemessage-square13fedilinkarrow-up11arrow-down10cross-posted to: shell@programming.dev
arrow-up11arrow-down1imageHow do you shell expand your variables and why?lemmy.worldzephyr@lemmy.world to Programming@programming.dev · 1 year agomessage-square13fedilinkcross-posted to: shell@programming.dev
minus-squarethingsiplay@kbin.sociallinkfedilinkarrow-up1·1 year 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-up1·1 year agoTo be safe, should probably output grep to a file, then cat that.
@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.