Displaying 1 result from an estimated 1 matches for "subdst".
Did you mean:
subdat
2007 Jun 06
1
add inverse recursive feature or do a mkdir -p/install -D -d ?
...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}"
fi
done
}
function rrsync() {
src=${1:?src please}...