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