find¶
move files¶
search depth¶
to stay in the current folder when searching, use -d
for the depth, or change it to search through more levels of directories:
find incomplete / dead rsync transfers¶
find them:
delete them:
delete files that don't match pattern¶
assuming you have a folder full of files and you only want to keep all files starting with us-
and ca-
and delete all others:
find 0 byte files¶
… you may want to double check if you actually want to delete them, but I had some conflicts in syncthing and checked for them manually