Stummi 1461067813 learn removes the filename part of a pathname (/a/b/c -> /a/b). A parameter expansion can do it cleaner and *much* faster: "${path%/*}". Beware the difference for arguments without / Stummi 1461068913 forget