Skip to content

Instantly share code, notes, and snippets.

@imchao9
Last active January 23, 2016 15:34
Show Gist options
  • Save imchao9/2cb2be6c99347411866e to your computer and use it in GitHub Desktop.
Save imchao9/2cb2be6c99347411866e to your computer and use it in GitHub Desktop.
七牛刷新缓存 qiniu refresh cache
#! /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