![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shell
思cong
默默装个程序员
展开
-
shell 模拟curl
首先说明参数代码创建curl.sh文件 if [ $# != 1 ]; then echo "The parameters you enter is not correct !"; exit -1;fi#循环读出URL并判断状态码while read linedo{ echo %{http_code} $line isok=`curl -I原创 2016-07-01 10:31:18 · 420 阅读 · 0 评论 -
远程拷贝文件
远程拷贝文件1、拷贝本机/home/administrator/test整个目录至远程主机192.168.1.100的/root目录下复制代码代码如下:scp -r /home/administrator/test/ root@192.168.1.100:/root/2、拷贝单个文件至远程主机复制代码代码如下:scp /home/administrator/Desktop/old/driver/te原创 2016-07-15 13:19:56 · 375 阅读 · 0 评论 -
使用shell生成七牛的管理凭证并进行刷新
使用shell生成七牛的管理凭证并进行刷新#!/usr/bin/env bashif [ $# -lt 5 ]then echo"参数错误 参数格式 AK SK URL body 1 or 2" exit 1fiPATHSS=$(echo $3 | cut -d/ -f4-)PATHS="/"${PATHSS}"\n"auth=$(echo -en $PATHS | op原创 2017-01-09 16:22:53 · 514 阅读 · 0 评论