awk print all but last field code example
Example: awk get last field
awk -F "/" '{print $NF}' input
#Retrieves last field in line delimited with "/"
awk -F "/" '{print $NF}' input
#Retrieves last field in line delimited with "/"