Where can I learn to do my own scripts?
I recently posted about the password generator by jxself.
And I would like to learn to do those kind of things by myself. Where do you recommend me to learn?
Thank you Magic Bannana ;-)
Your slides give an insight on what amazing capabilities
the shell offers.
for noobs like me:
http://vic.gedris.org/Manual-ShellIntro/1.2/ShellIntro.pdf
Just a question i often ask myself is how many years do students in IT study shell or scripts.
from experience mastering (comfortably) a trade usually takes 10 years.
I suppose that applies to Network administrators,developers (considering most of them have started out when they were young) & like with music or languages the younger you start the easier it is to acquire the discipline.
"from experience mastering (comfortably) a trade usually takes 10 years."
Maybe, but you don't have to be a master bash script programmer to write some very effective scripts, or even to be a system administrator! Mastery is necessary if you are doing very complex things. Think of carpentry. You can make some very nice looking and functional furniture without being a master carpenter. Want to make something complex, with inlays and carvings, then you need to be a master or artisan.
The basic principles of programming are the same in any language. One interesting thing about bash programming, is that you can write a script to run commands in the shell; Commands you could otherwise type in directly in a terminal. Here is a trivial example:
#!/bin/bash
cd /home/You
ls
You need to know some things about the command line, like the need to make a file executable with: chmod +x filename
And how to execute the file: ./filename
There is an opportunity to learn more even with this simple example. Compare its output to the output you get by directly typing these commands in a terminal. Why is the listing not color when you run the script, but is in color when you run it directly in the terminal?
Bash scripting is a natural extension of using the command line (otherwise program in lisp or C or Java or Python or Perl or Ruby, etc...etc...). So the first thing is to learn as much as you can about the command-line and get practice by using it often.
Thanks pragmatist for your very good explanation
So the first thing is to learn as much as you can about the command-line and get practice by using it often
This is a cool thread. Thanks for opening it, Albertoefg
Do you know any programming languages?