小编New*_*iee的帖子

如何通过rsync仅复制符号链接

如何使用rsync仅复制符号链接(而不是它指向的文件)或其他文件?

我试过了

rsync -uvrl input_dir output_dir

但我只需要复制符号链接吗?

任何使用包括排除选项的技巧?

unix linux symlink rsync

9
推荐指数
2
解决办法
1万
查看次数

提交十个作业并等待完成并重新提交下一个十个进程以完成的脚本?

我如何需要并行提交许多作业(例如每批十个)并等待它们完成,然后重新提交接下来的十个等等......?

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)

请提供建议以使其正常工作,提前致谢

shell

1
推荐指数
1
解决办法
839
查看次数

标签 统计

linux ×1

rsync ×1

shell ×1

symlink ×1

unix ×1