image-info.csv
- database of all images with uuid, checksum & create date.
- Top 20 largest files under current directory, with sizes listed in human-readable format
find . -type f -print0 | xargs -0 du -h | sort -hr | head -20
- Lowercase all files under current directory
find . -type f ! -wholename '*.AppleDouble*' -exec rename 'y/A-Z/a-z/' {} \;
find . -type f ! -wholename '*.AppleDouble*' | sed 's/.*\.//' | sort | uniq -c
- Download a bunch of files from S3, preserving directory structure:
for i in `cat list.txt ` ; do aws s3 cp s3://cc.roja.media/photos/pictures/$i `dirname $i` ; done
- Delete all
.AppleDouble
directories
find . -name ".Parent" -exec rm {} \; && find . -name ".AppleDouble" -type d -empty -delete
- List all JPGs under current directory
find . -type f -iname '*.jpg' ! -wholename '*.AppleDouble*'
- List all Videos under current directory
find . -type f -a \( -iname '*.mov' -o -iname '*.mp4' -o -iname '*.avi' \) ! -wholename '*.AppleDouble*'
find . -type f -name '*.jpg' ! -wholename '*.AppleDouble*' -exec sha512sum {} \;
- Find lines in file A not in file B
diff --new-line-format="" --unchanged-line-format="" <(sort file-A.txt) <(sort file-B.txt)
ffmpeg -i in.avi -copyts -pix_fmt yuv420p out.mp4