basename - Strips directory and suffix from filenames.
basename NAME [SUFFIX] basename OPTION
basename prints NAME with any leading directory components removed. If Suffix is specified, it will also remove a trailing SUFFIX.
|--version||Output version information and exit|
To get the name of the file present in test folder
$ basename test/sample.txt sample.txtPrint