Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: Shell Scripting

  1. #11
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,007
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Shell Scripting

    Quote Originally Posted by chrisguk View Post
    Hi ally_uk,
    It won't do everything, it's not a programming language and as such it has limitations.
    .
    While they certainly have their limitations, unix shells, at least the wellknown ones like bash and such, are Turing complete programming languages


    Quote Originally Posted by chrisguk View Post
    Hi ally_uk,
    there and tonnes of things you need to know about the system you want your script to work on. For example; a shell script that works on Ubuntu may not necessarily work on Arch Linux and vice versa. .
    depends on what you're doing and how you do it. A shell script that works on my Ubuntu might not even work on your Ubuntu, if it happens to call an external program that I have installed and you haven't; or if it looks for a file that is present on my system but not on yours. But there are ways to avoid such obvious bugs. The same is true for programs written in more sophisticated languages - they're just likely to have better facilities to avoid or work around such problems.


    I think for an absolute beginner who wants a quick intro in "how do a make a computer do stuff automatically", bash is a readily available good-enough solution.

  2. #12
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,007
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Shell Scripting

    Quote Originally Posted by CharlesA View Post
    All it takes is practice.]
    you mean lack of practise ?

  3. #13
    Join Date
    Apr 2007
    Beans
    74

    Re: Shell Scripting

    It's all well saying practice but how do you practice when you don't know where to start?

    Where are the guides / howtos?

  4. #14
    Join Date
    Sep 2006
    Beans
    7,241
    Distro
    Lubuntu Development Release

    Re: Shell Scripting

    Quote Originally Posted by ally_uk View Post
    It's all well saying practice but how do you practice when you don't know where to start?

    Where are the guides / howtos?
    There are a lot of sources listed in this thread:

    http://ubuntuforums.org/showthread.php?t=2155675

    I can't propose an order in which to read them. You'll have to skim them and decide which to tackle first.

  5. #15
    Join Date
    Oct 2009
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Shell Scripting

    Quote Originally Posted by ally_uk View Post
    It's all well saying practice but how do you practice when you don't know where to start?

    Where are the guides / howtos?
    Depends on the language. If you want to check out Python, check the link I posted earlier as they have some very nice tutorials. There is also a "Learning Python" book which is also handy.
    Come to #ubuntuforums! We have cookies! | Basic Ubuntu Security Guide

    Tomorrow's an illusion and yesterday's a dream, today is a solution...

  6. #16
    Join Date
    Feb 2009
    Beans
    98
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Shell Scripting

    Quote Originally Posted by ally_uk View Post
    It's all well saying practice but how do you practice when you don't know where to start?

    Where are the guides / howtos?
    Well first you have to have a goal: where DO YOU want to start?

    You indicated earlier that you want to do backup, so, start googling for basic backup shell scripts and you'll find plenty. Keep in mind, in linux/unix, any backup utilizes one or combination of the linux/unix 'tar' , 'cpio', and 'rsync' commands.
    Overclocked HPML150 running Precise Pangolin 12.04 LTS

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •