Is there any book , Tutorial on very very advanced shell scripting

I am looking for some tutorial where a simple script is written using very advanced methods so that i can learn more from

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

Once you’ve graduated from the Advanced Bash-Scripting Guide, I’d suggest the much more useful Greg’s Wiki (especially the Pitfalls article). It’s the single most useful Bash resource out there (please someone prove me wrong), and significantly, is an active (and actively moderated) wiki with even anonymous editing.

As for simple scripts using advanced methods, it’s difficult to judge what would be advanced for you. One of my own most advanced scripts was one find and loop over all files matching a user-provided path, in such a way that it would be impossible to craft a search string or filename to break the code or perform some sort of code injection (Unfortunately Bash gets really complicated if you want to use it securely). The script was documented to explain the reasoning behind all the non-trivial syntax, so it might have some learning potential. YMMV.

Method 2

Rather than a book or tutorial, you might want to look at some of the init scripts that start up your machine. Understanding these will give you a good grounding in bash scripting and provide you with a lot more insight into how your machine runs — and what you can do when it doesn’t…

You can read a general overview of the whole process in this article, From Power Up to Bash Prompt.

Method 3

Not sure what very advanced methods would be, but I have the ‘Expert Shell Scripting’ by Ron Peters (available about anywhere).

I’m happy with it :-).

Method 4

I’ve had good experience with bash Cookbook: Solutions and Examples for bash Users from O’Reilly. It has got the solutions to actual problems/situations that I have needed to resolve. All the recipes come with a discussion on why it was done this way; and many also has ways it could have been done differently. Case-by-case learning.

Pretty cheap as an ebook.


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x