Explorar o código

:memo: Add command to manipulate Google Pixel names

DricomDragon hai 1 ano
pai
achega
f2f07caad8
Modificáronse 1 ficheiros con 11 adicións e 1 borrados
  1. 11 1
      Guides/shell.md

+ 11 - 1
Guides/shell.md

@@ -65,4 +65,14 @@ rename 's/(\w+)_(\d{8}_.*)\./$2_IMG_$1./' *.jpg
 
 ```sh
 rename 's/(\w+)_(\w{3})_(\d{8}_.*)\./$3_$2_$1/\.' *
-```
+```
+
+### Fix Google Pixel length
+
+```sh
+rename 's/(^PXL_.*_[0-9]{6}).*\.jpg$/$1_IMG_person.jpg/' *.jpg
+rename 's/(^PXL_.*_[0-9]{6}).*\.mp4$/$1_IMG_person.mp4/' *.mp4
+rename.ul -- 'PXL_' '' *
+```
+
+Take care, timestamp seems to be in UTC.