美文共赏

xshell-3 For do 循环来创建多个文件夹,excel

2021-12-13  本文已影响0人  RashidinAbdu
whereis mysql
image.png
whereis prokka

image.png

for k in $(seq 1 4)
do 
mkdir /media/dell/data3/RXD/Annotation/${k}
done
image.png
for k in $(seq 1 4)
do 
mkdir /media/dell/data3/RXD/Annotation/file${k}
done

image.png

for k in $(seq 1 4)
do 
#mkdir /media/dell/data3/RXD/Annotation/file${k}
touch /media/dell/data3/RXD/Annotation/text${k}.txt
done

这样就获得了4个txt文件:


image.png
for k in $(seq 1 4)
do 
#mkdir /media/dell/data3/RXD/Annotation/file${k}
#touch /media/dell/data3/RXD/Annotation/text${k}.txt
touch /media/dell/data3/RXD/Annotation/Excel${k}.xlsx
done

得到:


image.png
上一篇下一篇

猜你喜欢

热点阅读