Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Expected Formatting
- ############
- Videos
- ############
- Subject_---_DateTime_---_DeviceName_--_Dimensions_&_codec_--_Title_-__SHASUM.EXT
- MediaPersonal_NAME_---_DATETIME_---_DeviceName
- NAME= whoever the files belong to
- DeviceName may be found only if:
- there exists images in the same folder
- TITLE= existing filename info or to be entered later
- ############
- Pictures
- ############
- Subject_---_DateTime_---_DeviceName_--_Dimensions_&_codec_--_Title_-__SHASUM.EXT
- ############
- Audio File
- ############
- Devices
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- To Organise
- exiftool -config ~/exiftool.config \
- -ext "WAV" -ext "AAC" -ext "AMR" \
- -d %Y%m%d_%H%M%S \
- '-filename<RecordingsDictaphone_[NAME]_---_${Filename;s/\..{3}$//;s/ /_/g;s/-//g;s/_(IN|OUT)_.*//}_---_Duration_H00M00S00_--_${Filename;s/_(IN|OUT)_0/_$1_+44/;s/^.*_(IN|OUT)_([+0-9]+)\..{3}$/$1_-__$2/}__${SHA256}.%ue' \
- '-filename<RecordingsDictaphone_[NAME]_---_${Filename;s/\..{3}$//;s/ /_/g;s/-//g;s/_(IN|OUT)_.*//}_---_Duration_${Duration;s/:/H/;s/:/M/;s/$/S/}_--_${Filename;s/_(IN|OUT)_0/_$1_+44/;s/^.*_(IN|OUT)_([+0-9]+)\..{3}$/$1_-__$2/}__${SHA256}.%ue' \
- ./*
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- ls -1 | while read line; do NEWNAME=$(echo "$line" | sed -E 's/([0-9]+)-([0-9]+)_([A-Za-z_0-9]+)..{3}$/RecordingsDictaphone_Wayne_---_$1-$2SS_--_$3.$4/'); done
- '([0-9]+)-([0-9]+)_([A-Za-z_0-9]+)..{3}$'
- RecordingsDictaphone_Wayne_---_\1-\2SS_--_\3.\4
- =======================================================================================================
- **##### Target:** Audio recording 2016-12-22 20-54-49.aac
- **##### Target:** Audio recording 2016-12-22 20-54-49.wav
- **##### Outcome:** RecordingsDictaphone_[NAME]_---\_20161222_205449\_---\_Duration_00H00M00S\_--\_TITLE\_-__SHA256SUM.aac
- ** ##### Command to run: **
- ```bash
- exiftool -config ~/exiftool.config \
- -ext "WAV" -ext "AAC" -ext "AMR" \
- -d %Y%m%d_%H%M%S \
- '-testname<RecordingsDictaphone_[NAME]_---_${Filename;s/\..{3}$//;s/ /_/g;s/-//g}_---_Duration_${Duration;s/:/H/;s/:/M/;s/$/S/}_--_${Filename;s/.*_-_(.*)\..*$/$1/}_-__${SHA256}.%ue' \
- ./*
- ```
- * * *
- **##### Target:** 2017-01-01_16-42-08_-_MOV_0005.MP4
- **##### Outcome:** MediaPersonal_[NAME]__---\_20170101_164208\_---\_Sony_E6633\_--\_3840x2160\_--\_MOV_0005\_-__SHA256SUM.JPG
- **##### Command to run:**
- ```bash
- exiftool -config ~/exiftool.config \
- -ext "MP4" \
- -d %Y%m%d_%H%M%S \
- '-testname<MediaPersonal_[NAME]_---_${Filename;s/-//g;s/_-_.*//}_---_${Make}_${Model}_--_${ImageSize}_--_${Filename;s/.*_-_(.*)\..*$/$1/}_-__${SHA256}.%ue' \
- ./100ANDRO/
- ```
- * * *
- **##### Target:** 2017-01-01_16-42-08_-_DSC_0005.JPG
- **##### Outcome:** MediaPersonal_[NAME]_---**20170101_164208**---**Sony_E6633**--**3840x2160**--**DSC_0005**-__SHA256SUM.JPG
- **##### Command to run:**
- ```bash
- exiftool -config ~/exiftool.config \
- -ext "MP4" \
- -d %Y%m%d_%H%M%S \ '-testname<MediaPersonal_[NAME]_---_${Filename;s/-//;s/-//;s/-//;s/-//;s/\..{3}$//;s/_-_.*//;s///}_---_${Make}_${Model}_--_${ImageSize}_--_${Filename;s/.*_-_(.*)\..*$/$1/}_-__${SHA256}.%ue' \
- ./
- ```
- * * *
- **##### Target:** 2016-04-22_09-36-59_OUT_08003586552.AMR
- **##### Outcome:** RecordingsCall_[NAME]_---\_20160422_093659\_---\_Duration_00H00M00S\_--\_OUT_-__+448003586552__SHA256SUM.aac
- ** ##### Command to run: **
- ```bash
- exiftool -config ~/exiftool.config \
- -ext "WAV" -ext "AAC" -ext "AMR" \
- -d %Y%m%d_%H%M%S \
- '-testname<RecordingsDictaphone_[NAME]_---_${Filename;s/\..{3}$//;s/ /_/g;s/-//g;s/_(IN|OUT)_.*//}_---_Duration_H00M00S00_--_${Filename;s/_(IN|OUT)_0/_$1_+44/;s/^.*_(IN|OUT)_([+0-9]+)\..{3}$/$1_-__$2/}__${SHA256}.%ue' \
- '-testname<RecordingsDictaphone_[NAME]_---_${Filename;s/\..{3}$//;s/ /_/g;s/-//g;s/_(IN|OUT)_.*//}_---_Duration_${Duration;s/:/H/;s/:/M/;s/$/S/}_--_${Filename;s/_(IN|OUT)_0/_$1_+44/;s/^.*_(IN|OUT)_([+0-9]+)\..{3}$/$1_-__$2/}__${SHA256}.%ue' \
- ./*
- ### Result
- ### './2016-04-23_14-57-03_OUT_07792749276.AMR' --> './RecordingsDictaphone_[NAME]_---_20160423_145703_---_Duration_H00M00S00_--_OUT_-__+447792749276__7d810e17290479cc3b396651e412e73f2058c0444d2fbdf182666fd680730e2b.AMR'
- ```
- * * *
- **##### Target:**
- **##### Outcome:**
- **##### Command to run:**
- ```bash
- Empty
- ```
- * * *
- **##### Target:**
- **##### Outcome:**
- **##### Command to run:**
- ```bash
- Empty
- ```
- * * *
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement