Newbie bash path parse problem
In a bash file, say I have a string $fqpath containing /usr/local/oh/what/a/newbie.
I want to parse it and assign a variable to be just the last part, the word "newbie". Something like:
foldername = echo '$fqpath' | gawk #....huh!! what goes here??