Task: Display the last slash-separated part of each filename path in /workspace/dir1/file.txt
Command: rev /workspace/dir1/file.txt | cut -d/ -f1 | rev
Equivalent command: awk -F/ '{print $NF}' /workspace/dir1/file.txt