Last active
January 23, 2016 15:34
-
-
Save imchao9/2cb2be6c99347411866e to your computer and use it in GitHub Desktop.
七牛刷新缓存 qiniu refresh cache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
read lesson | |
./qshell_darwin_amd64 listbucket [bucket name] $lesson/ filelist.log | |
egrep -o '.*\.(png|jpg|js|mp4|an|html)' filelist.log > test.txt | |
sed 's/^/http:\/\/7xq5ra.com2.z0.glb.qiniucdn.com\/&/g' test.txt > refresh.log | |
./qshell_darwin_amd64 batchrefresh refresh.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment