When working with files processing in Linux, may be needed to get filename from given file path. This tutorial shows how to do that in Linux.
basename command that allows to retrieve filename from file path while removing the directories if any.
-a option can be used to provide multiple arguments:
basename -a /var/log/auth.log /var/log/syslog /etc/hosts
auth.log syslog hosts