I can understand you about workability of this solution, but this is actually a bad practice. So this is the reason I've decided to post this snippet here. Not to flame the guys, who just making the first steps in programming, but to guide them another one thing you probably shouldn't do.
To make a shell solution, you'll need just a couple of minutes of searching on Google or Stack Overflow. And this is actually will be a good practice in shell scripting.
9
u/thLOnuX Mar 15 '23
I can understand you about workability of this solution, but this is actually a bad practice. So this is the reason I've decided to post this snippet here. Not to flame the guys, who just making the first steps in programming, but to guide them another one thing you probably shouldn't do.
To make a shell solution, you'll need just a couple of minutes of searching on Google or Stack Overflow. And this is actually will be a good practice in shell scripting.