SHARE
TWEET

Untitled

a guest Jun 26th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/system/bin/sh
  2. #change timestamp for images filename IMG_YYYYMMDD_HHMMSS.jpg
  3. for i in IMG_*.jpg
  4. do
  5.     touch -t ${i:4:8}${i:13:4}.${i:17:2} $i
  6. done
  7.  
  8. #change timestamp for whatsapp images IMG-YYYYMMDD-WAnnnn.jpg
  9. for i in IMG-*WA*.jpg
  10. do
  11.     touch -t ${i:4:8}1234 $i
  12. done
  13.  
  14. #change timestamp for videos filename VID_YYYYMMDD_HHMMSS.mp4
  15. for i in VID_*.jpg
  16. do
  17.     touch -t ${i:4:8}${i:13:4}.${i:17:2} $i
  18. done
  19.  
  20. #change timestamp for whatsapp videos IMG-YYYYMMDD-WAnnnn.mp4
  21. for i in VID-*WA*.jpg
  22. do
  23.     touch -t ${i:4:8}1234 $i
  24. done
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top