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