Created
May 1, 2012 15:30
-
-
Save v6ak/2568859 to your computer and use it in GitHub Desktop.
remote sha1sum for box.com
This file contains hidden or 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
| for url in $( | |
| curl https://www.box.com/api/2.0/folders/$FOLDER_ID -H "$AUTH" | | |
| (sed 's#.*"entries":\[{##' | sed 's/},{/\n/g') | grep file | sed 's#^"type":"file","id":"\([0-9]\+\)".*#https://www.box.com/api/2.0/files/\1#' | |
| ); do | |
| curl "$url" -H "$AUTH" | sed 's#\(.*\)"name":"\([^"]\+\)",\(.*\)"sha1":"\([^"]\+\)"\(.*\)$#\4 \2\n#' | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment