文章分类 - shell
摘要:1、查询帖子的点赞数量 代码示例: a=`curl -s https://testerhome.com/topics | grep -o 'href="/topics/[0-9]*"'|awk -F '/|"' '{print $4}'`;for id in $a;do url='https://t
阅读全文
摘要:1、变量的类型 字符串,a="xx" 数字,i=123 布尔,a=true,b=false 预定义变量:echo $PWD,echo$PATH,echo$USER,echo$HOME 数组变量:array=(1 2 3 4) 2、变量的使用 基本使用方法 echo $a echo ${b} echo
阅读全文