Linux Today: Linux News On Internet Time.

Strip Directory & Suffix From Filenames with Basename

Feb 07, 2021, 17:00 (0 Talkback[s])
(Other stories by Putorius.net)

Let's examine another shell utility from the GNU Core Utilities package. The basename command allows you to easily strip directory and suffix from a filename. This is very handy for shell scripting.

Complete Story