You're replying to a comment by Holy Penguin.

April 15, 2014, 04:49

You write very clearly, thank you, but this time I think something like this would be clearer

>>"Let's say you have a /path/to/file.ext, and you wish to extract just the filename "file.ext". How do you do it? A convenient solution is to assign the whole path to a variable (mypath in this case) and use the parameter expansion mechanism:

$ filename=${mypath##*/}

This one-liner uses the..."

Reply To This Comment

(why do I need your e-mail?)

(Your twitter handle, if you have one.)

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

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