Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Delete empty files / empty directories

find . -type f -empty -print -delete

find . -type d -empty -print -delete

Move photos/videos to folder, based on their creation date

exiftool -d /home/user/Photos/%Y-%m-%d "-directory<CreateDate" ./VID*.{mp4,jpg}

(or leave the extension out, and all files with EXIF data will be included)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: