Now I have this:
echo "silly/horse/fox" | cut -d "/" -f3 fox
But I want to be able to get the last line no matter how many delimiters we have.
So, something like "stupid / horse / fox / lion" will return me a "lion"
Something equivalent to Python string.split ('/') [- 1]
source share