|
From: | Chris F.A. Johnson |
Subject: | Re: Removing last directory from path |
Date: | Thu, 14 Oct 2021 21:29:25 -0400 (EDT) |
User-agent: | Alpine 2.22 (DEB 394 2020-01-19) |
On Fri, 15 Oct 2021, tolugboji via wrote:
I have a path gmtbin, and would like to remove the /bin at the end. gmtbin="/usr/local/bin/gmt/bin"
binless=${gmtbin%/bin} -- Chris F.A. Johnson
[Prev in Thread] | Current Thread | [Next in Thread] |