one-liner:
function frog_travel_albums() {
cd ~/Downloads/; adb pull /storage/emulated/0/Android/data/jp.co.hit_point.tabikaeru/files/Picture; cd Picture; find . -iname "album_*.sav" -exec bash -c 'fs="$(( "$(stat --printf="%s" $1)" - 4 - 32))"; if [ ! -f "$1".png ] || [ "$fs" -ne "$(stat --printf="%s" $1.png)" ]; then dd if="$1" of="$1".png bs=1 skip=4 count="$fs"; else echo "File already exists"; fi' _ {} \;; rm *.sav; rm *.sav.back; (nautilus . >/dev/null 2>&1 &)
}
export -f frog_travel_albums
No comments:
Post a Comment