Created
November 2, 2020 01:24
-
-
Save laprasdrum/2d4f0a7fb1d5f07a458a2f790a3e0686 to your computer and use it in GitHub Desktop.
ScreenShot for smartphone with timestamp name
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
# iOS | |
# use libmobiledevice | |
# https://github.com/libimobiledevice/libimobiledevice | |
# https://formulae.brew.sh/formula/libimobiledevice | |
# save as 'ios_20200401_11.09.21.png' | |
$ date +%Y%m%d_%H.%M.%S | xargs -I{} sh -c 'idevicescreenshot /path/to/screenshot/ios_{}.png' | |
# Android | |
# save as 'android_20200401_11.09.21.png' | |
$ date +%Y%m%d_%H.%M.%S | xargs -I{} sh -c 'adb exec-out screencap -p > /path/to/screenshot/android_{}.png' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment