소스 검색

:memo: Add command to manipulate Google Pixel names

DricomDragon 1 년 전
부모
커밋
f2f07caad8
1개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  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.