What are the ways to get the filename from the absolute path in a variable Mypath=/my/path/file
filename=basename Mypath
basename Mypath
filename =file Mypath
file Mypath
filename = ${Mypath#///}
echo $Mypath | awk ‘ FS=”/” { print $4 } ‘