Displaying 1 result from an estimated 1 matches for "subsrc".
Did you mean:
subscr
2007 Jun 06
1
add inverse recursive feature or do a mkdir -p/install -D -d ?
...maxdepth=$srcdepth;
else
maxdepth=$dstdepth;
fi
echo "${src} ${dst}"
for (( i=1; ${i} < ${maxdepth}; i=$(( ${i}+1 )) )); do
fsrc=$(( ${srcdepth} - ${i} ))
fdst=$(( ${dstdepth} - ${i} ))
subsrc=$(echo -n "${src}" | cut -d "/" -f1-${fsrc})
subdst=$(echo -n "${dst}" | cut -d "/" -f1-${fdst})
if [ ! -z "${subsrc}" ] || [ ! -z "${subdst}" ]; then
echo "${subsrc} ${subdst}&q...