LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Bash: Tutorials (https://www.linuxquestions.org/questions/programming-9/bash-tutorials-4175438197/)

fatalerror0x00 11-21-2012 05:58 PM

Bash: Tutorials
 
I have decided to step off my current script making as I have all that I need and stopped development on a script I'm copying and trying to improve for my server as I have examined it much closer and have realized I could never improve this enough to make it better right now or even design it more for me because I don't know enough about bash.

I've seen some other post and myself but wanted others who have learned from guides to give me there opinion :)

Where do you recommend I start learning about bash? Lets say I have no real previous scripting or programming or even markup language experience just because I wanna start at a dummy level because normally I have to start there no matter what. I would like a guide that will teach me as much as possible about everything but getting to things as much as possible from easiest to hardest (usually most guides but i want to make sure it's that way.) Thank you!

unSpawn 11-21-2012 08:53 PM

Here's some basic BASH scripting guides:
http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
http://www.tldp.org/LDP/Bash-Beginne...tml/index.html
http://www.gnu.org/software/bash/man...ode/index.html
..and some to save for later:
http://www.grymoire.com/Unix/Sh.html
http://www.tldp.org/LDP/abs/html/
http://mywiki.wooledge.org/BashFAQ
http://mywiki.wooledge.org/BashPitfalls
but just doing stuff is the only way to learn IMHO.

* For some odd reason the first site I saw when searching for scripts was Heiner's SHELLdorado. Copied some scripts, looked at it and kept modifying until I found it was easier to write stuff myself. I've looked up specific stuff but never really "studied" a BASH HOWTO front to back (and yes, I've made mistakes ;-p). I did have to un-learn a lot of Bash-isms later on working with the Heirloom pure Bourne shell. Not saying you should but it's good to be aware of potential compatibility pitfalls. It does help to know the rest of the toolkit you "glue" stuff with and it does help if you've got an itch to scratch but other than that I'd say just do stuff and have fun doing it.

markush 11-22-2012 08:45 AM

Hi,

since you use Slackware, I would recommend that you read (and try to understand) the files in /etc/rc.d/ they are easy to understand, there's no advanced knowledge necessary (mostly).
And when you don't understand a thing, you may take a look at the advanced bash scripting guide which unSpawn already mentioned above.

The manpage for Bash is very! helpful.

Markus


All times are GMT -5. The time now is 07:39 PM.