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.
Get the Free Newsletter!
Subscribe to Developer Insider for top news, trends, & analysis