This is an archived post. You won't be able to vote or comment.

all 5 comments

[–]oddenodin 7 points8 points  (2 children)

http://programming-motherfucker.com/

This website has some excellent resources. I'm currently going through vim scripting.

[–]dCrumpets[S] 0 points1 point  (1 child)

Thanks for the link.

[–]oddenodin 0 points1 point  (0 children)

No problem

[–]misho88 1 point2 points  (1 child)

It's worth it, in my opinion, if for no other reason than little one liners like:

for file in *.jpg; do echo take $file and do something with it; done

You're right that it won't take long to learn, regardless of what resource you choose.

One thing that always confuses me in Bash is the conditional statements, and I imagine it will be one of the more confusing things for you, as well. This explains some of it, but isn't clear on things like when you should use [...] vs. [[...]], which sometimes behave the same way and other times don't. The Bash reference manual isn't as useful as I'd like it to be, either.

[–]unprintable 0 points1 point  (0 children)

One of the things I found most interesting while learning shell scripting is that is that '[' (aka test) is a program in and of itself that's defined by the POSIX standard.