Linux Today: Linux News On Internet Time.

Using Linux Basename Command in Bash Scripts

Oct 23, 2019, 12:00 (0 Talkback[s])
(Other stories by Abhishek Prakash Chaturvedi)

The basename command in Linux prints the final component in a file path. This is particularly helpful in bash scripts where you want to extract the file name from the long file path.

Complete Story