Get file name in Shell

From Augix' Wiki

Jump to: navigation, search
$ basename /the/path/to/thisfile.txt
thisfile.txt
$ basename thisfile.txt .txt
thisfile
$ basename /the/path/to/thisfile.txt .txt
thisfile

ref

Personal tools