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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...