Noobs Guide to Bash-Scripting
I've added more to my series of bash-scripting tutorials! Hopefully this can help some people get on the right track, I've tried to start from the very basics, and we're progressing on to the more interesting stuff.
Part 1 Part 2 Part 3 I will be updating this post as I write some more parts! Comments are much appreciated. |
Well, where you explain "for", you could also explain its use with explicit list. Or $(seq 1 10) .. Because the fact that for is applicable not only to * can be a small stumbling block for beginning shell programmers.
|
Yea, thanks for the tip. I'll include that when I next get the chance. :D
|
Great work
Over all, v.v.v. good.
Here are some suggestions. Hope none are too harsh; remember, I wouldn't have bothered if I didn't think your piece is worth the trouble. Title typos Quote:
Quote:
Title content Although I am in a tiny minority here, I think "noob" is a totally offensive term, see http://www.catb.org/jargon/html/N/newbie.html & realize that in the "British public-school" context, there may have been an implied right of upperclassmen to sodomize the newbie. Compare "fresh fish" in The Shawshank Redemption. Part 1 typos Quote:
Quote:
Quote:
Quote:
Part 1 content Personally, I would explain in more depth: shebang (also called a hashbang, hashpling, or pound bang) both the nomenclature & the reason. I wouldn't be embarrassed to reference the Wikipedia. Why chmod & ./$SCRIPTNAME are necessary. Part 2 typos Quote:
Quote:
Quote:
Quote:
Part 2 content Quote:
Quote:
"Variables can be created very easily:" . . . I'd be happier if you stuck w/ the bash convention of capitalizing variable names & didn't model the, to a shell scripter, abominable long variable names from the C family: Code:
example_variable="example_value" Code:
VAR="example_value" "Along with the argument variables," You need to mention that argument variables are perversely called "parameters" in bash -- particularly in its man page. (Thumbs up for calling them "arguments".) Part 3 typos Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Part 3 content Quote:
And of course, I hope I have proofed & spell checked this enough . . . |
All times are GMT -5. The time now is 11:50 AM. |