PDA

View Full Version : Shellscripting



shandar
October 11th, 2005, 09:56 AM
Hi there!

Is here anyone who can point me to a good tutorial about shellscripting? I wrote a simple script to resize all jpegs in a folder which worked fairly good, but to be honest I didn't really understand what I did since I borrowed part of the code from another script :P . I also want to calculate how many percent that has been done, but it seems to be a pain in the butt, do I really have to call expr everytime I want to do a calculation like increasing a variable with 1?

thumper
October 11th, 2005, 10:39 AM
http://www.tldp.org/LDP/abs/html/ is the Advanced bash-scripting guide. Don't get put off by the title as it doesn't assume any prior knowledge about scripting.

jerome bettis
October 11th, 2005, 08:29 PM
^ i was going to post the same thing, excellent guide.

shandar
October 11th, 2005, 10:25 PM
I'll have a look at it! Thanks!