Displaying 1 result from an estimated 1 matches for "doublecrushedpath".
2007 Jun 06
1
add inverse recursive feature or do a mkdir -p/install -D -d ?
...)); do
fpath=$(( ${pathdepth} - ${i} ))
subpath=$(echo -n "${path}" | cut -d "/" -f1-${fpath})
if [ ! -z "${subpath}" ]; then
echo "${subpath}"
fi
done
}
function doublecrushedpath() {
src="${1:?give a src path please}"
dst="${2:?give a dst path please}"
src=$(echo -n "${src}" | sed -e 's,/$,,')
dst=$(echo -n "${dst}" | sed -e 's,/$,,')
srcdepth=$(echo -n "${src}" | sed -...