You're viewing a comment by Peter Krumins and its responses.

June 01, 2012, 19:46

Oh right. And for 9 also dirname=$(dirname $path). I'll update the article with these!

Comment Responses

Richard Michael Permalink
June 01, 2012, 20:54

basename and dirname are not bash built-ins. So what makes 8 and 9 interesting is the param expansion solution - thanks!

June 02, 2012, 10:50

Also true!

Reply To This Comment

(why do I need your e-mail?)

(Your twitter name, if you have one. (I'm @pkrumins, btw.))

Type the word "apple_325": (just to make sure you're a human)

Please preview the comment before submitting to make sure it's OK.