Very useful article
https://www.freecodecamp.org/news/how-to-type-letters-with-accents-on-mac/
command line tools, usage examples, cmd, freebsd, tools, arch
Very useful article
https://www.freecodecamp.org/news/how-to-type-letters-with-accents-on-mac/
#replace File modify date with File create date
exiftool '-filemodifydate<createdate' -ee -ext .mov -r .
#check all time stamps available in file
exiftool -s -time:all
#convert mp4 to mov
& "PATH\ffmpeg.exe" -i "PATH\Skydive_OpenShot_ExifTool_Test.mp4" -acodec copy -vcodec copy -f mov "PATH\Skydive_OpenShot_ExifTool_Test.mov"
#add metadata
& "PATH\exiftool.exe" ` "-QuickTime:CreationDate=2019:10:16 12:00:00-07:00" ` "-QuickTime:GPSCoordinates=35 56 57.2 N, 114 51 28.3 W" ` "PATH\Skydive_OpenShot_ExifTool_Test.mov"
#for mac
brew install rename
rename JPG jpg *.JPG
#if you use barewords(protected)
rename 's/\.JPG$/.jpg/' *.JPG
#mac os is case sensitive, that is why we need to do 2 renames
rename 's/\.MOV$/.mov_/' *.MOV
rename 's/\.mov_$/.mov/' *.mov_
# $PATH
check which directories are on the path
```bash
echo $PATH
```
add directory to path
```bash
export PATH='path_to_directory:$PATH'
#load new path
source ~/.bashrc
```
#!/bin/bash
for img in *.jpg; do
newname=$(head /dev/urandom | tr -dc a-z0-9 | head -c 8)
mv "$img" "$newname".jpg
done
Very useful article https://www.freecodecamp.org/news/how-to-type-letters-with-accents-on-mac/