说我有一个这样的bash循环:
declare -a arr=("ALD89117.1" "ALD89128.1" "ALD89126.1")
for i in "${arr[@]}"
do
echo "myid :" $i
#I want to sleep the porcess for 0.1 seconds here!!
esearch -db protein -query $i | elink -target nuccore | efetch -format ft
done > >(tee eutils_output.txt) 2>&1
我想在上述循环中将进程休眠0.1秒。这样做的命令是什么?
答案 0 :(得分:2)
sleep 0.1
没有比这容易的多了!