如何使用rsync仅复制符号链接(而不是它指向的文件)或其他文件?
我试过了
rsync -uvrl input_dir output_dir
但我只需要复制符号链接吗?
任何使用包括排除选项的技巧?
我如何需要并行提交许多作业(例如每批十个)并等待它们完成,然后重新提交接下来的十个等等......?
array=( $(ls -1 window/*realign_win*.txt ) ) ;
echo ${#array[@]};
#for e in ${!array[*]}
for (( e=0; e<="${#array[@]}"; e++ ))
do
# echo "$e" ;
for n in {0..9}
do
if [[ $e -gt ${#array[@]} ]]
then
echo $e, ${#array[*]};
break;
else
echo $e, ${#array[*]};
j=$(($e+$n)) ;
echo "didel-1.01-linux-64bit --analysis indels --doDiploid --bamFile $i --ref Homo_sapiens.GRCh37.62.fa --varFile ${array[$j]} --libFile ${i}_didel_output.libraries.txt --outputFile ${array[$j]}.didel_stage3" ;
#e=$(($e+1)) ;
echo $e;
fi
done &
wait
done
done
Run Code Online (Sandbox Code Playgroud)
请提供建议以使其正常工作,提前致谢