Skip to content

Instantly share code, notes, and snippets.

View nightcrawler-'s full-sized avatar

Frederick Nyawaya nightcrawler-

View GitHub Profile
@nightcrawler-
nightcrawler- / get-files.sh
Created April 2, 2020 16:58
Gets all files listed in res-urls and structures them the same way in the local folder
wget -x -nH -i res-urls
@nightcrawler-
nightcrawler- / rename-seq.sh
Created March 31, 2020 07:56
Rename all PNG files in directory sequentially from 1, pad to x length
a=1
for i in *.png; do
new=$(printf "%04d.png" "$a") #04 pad to length of 4
mv -i -- "$i" "$new"
let a=a+1
done