zephyr@lemmy.world to Programming@programming.dev · 1 year agoHow do you shell expand your variables and why?lemmy.worldimagemessage-square3fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1imageHow do you shell expand your variables and why?lemmy.worldzephyr@lemmy.world to Programming@programming.dev · 1 year agomessage-square3fedilink
minus-squareilega_dh@feddit.nllinkfedilinkarrow-up0·1 year agofind “$(echo $HOME > variable_holder.txt && cat variable_holder.txt)/$(cat alphabet.txt | grep “d”) $(cat alphabet.txt | grep “o”)$(cat alphabet.txt | grep “c”)$(cat alphabet.txt | grep “s”)” This is the easiest method
minus-squaremonsterpiece42@reddthat.comlinkfedilinkarrow-up0·1 year agoWhat should I search to better understand what is written here? Don’t mind learning myself, just looking for the correct keywords. Thanks!
minus-squareoneiros@lemmy.blahaj.zonelinkfedilinkarrow-up0arrow-down1·1 year agoThis comment is a joke and you wouldn’t want to do it like that in reality, but here are some related keywords you could look up: “Unix cat”, “Unix pipeline”, “grep”, “output redirection”, “command substitution”.
find “$(echo $HOME > variable_holder.txt && cat variable_holder.txt)/$(cat alphabet.txt | grep “d”) $(cat alphabet.txt | grep “o”)$(cat alphabet.txt | grep “c”)$(cat alphabet.txt | grep “s”)”
This is the easiest method
What should I search to better understand what is written here? Don’t mind learning myself, just looking for the correct keywords. Thanks!
This comment is a joke and you wouldn’t want to do it like that in reality, but here are some related keywords you could look up: “Unix cat”, “Unix pipeline”, “grep”, “output redirection”, “command substitution”.