Created
August 30, 2019 08:43
-
-
Save Kardelio/b3a25e22f5ef0fedaaf08c1a2d1c189d to your computer and use it in GitHub Desktop.
Script to copy (pull) the newest recorded video from a Android device to your computer (vidpull)
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
#!/usr/bin/env bash | |
echo "Pulling newest video" | |
file=$(adb shell ls sdcard/DCIM/Camera | grep mp4 | tail -n1 | sed 's/^M//g') | |
adb pull "sdcard/DCIM/Camera/$file" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related video regarding this script:
https://youtu.be/0lBTc4aE10I