当前位置:网站首页>Use of shell:for loop

Use of shell:for loop

2022-07-05 23:01:00 NoGame_ NoWork

links_dir For a path ,links For a txt Format file

The following code can links_dir In the catalog links Print out every line of the file

for i in $(cat $links_dir/*links)
    do
    echo $i
done
原网站

版权声明
本文为[NoGame_ NoWork]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140347410623.html