Created
July 5, 2017 12:44
-
-
Save HugoPoi/22e6c3a8ecc11b149635c2c93a35559b to your computer and use it in GitHub Desktop.
Download only certain file with dbxcli
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 | |
# | |
# Usage : dbxcligetfiles.sh "\*\.png" /Webdesign | |
# | |
dbxcli search $1 $2 | while read line | |
do | |
echo $line | |
mkdir -p ".${line%/*}" | |
dbxcli get "$line" ".$line" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment