ls-command-here is your ls command. Replace "ls-command-here" and put your ls command there
"print $NF" tells awk to print the field that is referenced by the total number of fields. i.e. if your ls output has 9 fields, NF will be 9, and hence $NF will print field 9 - the last field.
Cheers
ZB