|
From: | Alex fxmbsw7 Ratchev |
Subject: | Re: Removing last directory from path |
Date: | Fri, 15 Oct 2021 08:28:00 +0200 |
bin=/a/to/bin pre=${bin%/*} On Fri, Oct 15, 2021, 03:22 tolugboji via <help-bash@gnu.org> wrote: > I have a path gmtbin, and would like to remove the /bin at the end. > > gmtbin="/usr/local/bin/gmt/bin"
[Prev in Thread] | Current Thread | [Next in Thread] |