▲ 63 ▼ How do you shell expand your variables and why? (lemmy.world) submitted 2 years ago by zephyr@lemmy.world to c/programming@programming.dev 29 comments fedilink hide all child comments
[–] thingsiplay@kbin.social 3 points 2 years ago* (last edited 2 years ago) (1 child) @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. permalink fedilink source parent hideshow 2 child comments replies: [–] gendulf@kbin.social 3 points 2 years ago (1 child) To be safe, should probably output grep to a file, then cat that. permalink fedilink source parent hideshow 2 child comments replies: [–] ilega_dh@feddit.nl 1 point 2 years ago (1 child) Agreed. Everything in Linux is a file so let’s keep it that way. permalink fedilink source parent hideshow 2 child comments replies: [+] ImpossibleRubiksCube@programming.dev 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent
[–] gendulf@kbin.social 3 points 2 years ago (1 child) To be safe, should probably output grep to a file, then cat that. permalink fedilink source parent hideshow 2 child comments replies: [–] ilega_dh@feddit.nl 1 point 2 years ago (1 child) Agreed. Everything in Linux is a file so let’s keep it that way. permalink fedilink source parent hideshow 2 child comments replies: [+] ImpossibleRubiksCube@programming.dev 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent
[–] ilega_dh@feddit.nl 1 point 2 years ago (1 child) Agreed. Everything in Linux is a file so let’s keep it that way. permalink fedilink source parent hideshow 2 child comments replies: [+] ImpossibleRubiksCube@programming.dev 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent
[+] ImpossibleRubiksCube@programming.dev 3 points 2 years ago* (last edited 2 years ago) [deleted] permalink fedilink source parent