Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Want to learn bash shell scripting

  • 26-09-2005 11:07pm
    #1
    Closed Accounts Posts: 437 ✭✭


    As you can see by the title of the thread, I want to learn bash shell scripting. Basically, for me, the best way to learn anything is through doing little projects and the like. I was just wondering could anyone recommend and small script ideas that a beginner could do to get me started? Or even post a few up and explain to me how they work?


Comments

  • Registered Users, Registered Users 2 Posts: 19,396 ✭✭✭✭Karoma


    A quick google will dig up an enormous amount of scripts. A little creativity gets you well commented scripts.
    Really, the vast majority of the script are *Nix commands.. Get familiar with the console, and refer to the web again for syntax: ex: http://www.cactus.org/~dak/shellscript.html


  • Closed Accounts Posts: 4,763 ✭✭✭Fenster


    I did the same recently, to get a decent grasp on the topic. I started with Basic Shell Scripting - its aimed towards real Linux newbies, but it has very good primers on awk and sed and case and test ([), which are important down the road.

    Once you feel comfortable, try "Classic Shell Scripting" from O'Reilly. There's also the Bash Scripting Guide. Great online reference, but the learning curve is a little steep.

    And lastly, there's Shelldorado.

    Like you said, projects are a good idea. Mine was a script for importing photos from digital cameras and memory cards.


  • Closed Accounts Posts: 437 ✭✭Yook


    Thanks for the reply guys! Do you think you could list some of the cooler stuff you've done with bash shell scripts?


  • Closed Accounts Posts: 2,046 ✭✭✭democrates




  • Registered Users, Registered Users 2 Posts: 1,496 ✭✭✭jlang


    Best way to learn is by doing - ie if you do something more than once, consider how you'd automate it. If you find yourself making notes, consider writing a script you can use in the future.

    A simple and useful project - automate your backup strategy.


  • Advertisement
Advertisement