Jump to content

a good place to learn shell scripts?


Guest chotie
 Share

Recommended Posts

Guest chotie

Hello!

 

I am trying to find pages where i can learn shell scripting

in mandrake.

 

Any suggestion are very appreciated!! :)

 

Thanks for helping...

 

Br,

Christian O.

chot@home.se

Link to comment
Share on other sites

Guest chotie

I will go over that one.

 

Thank you for helping! :)

 

Another question:

Are there anything about mandrake specific command anywhere?

 

Br,

Christian O.

chot@home.se

Link to comment
Share on other sites

you won't find _too_ many mandrake-specific commands, but your best bet is to find out what command you want to use and do ye ol'

man <command>

to see what it does.

Link to comment
Share on other sites

chotie: As with any programming the best way to learn IMHO is just by doing it....

 

First off do a serch on here for (g)Aru's (the G is for guru) scripts....

Find one that looks interesting and then take it apart....

 

Anybits you don't understand use your good friend MAN ....

 

Then think of something useful you wanna achive.... it might be say parsing a log file, automate a mail collection or whatever makes you tick.....

 

Then try applying bits of code you find to do this.

 

As a suggestion how about http://www.mandrakeusers.org/viewtopic.php?t=7144

 

The important thing is to do something you think is useful. First just get it to do it.... whateverway works then you can look at making it neater.

 

If you post it here we'll all pull it apart and suggest alternatives....

But don't worry ... its the trying that counts ... you only get better with practice and learning some obscure bits :D

 

Personally, Id say the most imoprtant parts are learning inheritnace and how to manipulate envvar's. The scruipt by Aru illustrates both very nicely.

 

See http://www.mandrakeusers.org/viewtopic.php...ght=inheritance

 

 

To show why not to be scared of mistakes see Aru's correction to one of my posts ...

http://www.mandrakeusers.org/viewtopic.php...ght=inheritance

 

And the accolade when I get it right :D

http://www.mandrakeusers.org/viewtopic.php...%20aru&start=15

hehe Getting a 100% on this from (g)Aru is like ... wow (looks for expanding head emoticon and gives up)

 

So, don't be scared to try stuff out.... if it reacts unexpectedly then post bits and everyone will help out.

 

Once you have a good footing you can pick up a book, I think O'Reilly do a good one on learning BUT

An excellent resource is UNIX power tools....

This is mainly nice neat scripts ... some are VERY COOL. .

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...