Conversation
Notices
-
7666 (7666@comp.lain.la)'s status on Sunday, 16-Feb-2025 15:15:00 JST 7666
finally wrote a new tool so i don't have to manually rm hundreds of files in multiple lower directories by dumping the prebuilt rm commands in each directory after cd'ing to it, called it rmq and added it to my $PATH:
find . -type f -name $1 -delete -print -quit
this is needed because sometimes i get 100+ files reported to remove in a batch and they can span multiple 10TB mounted directories based on when the files were uploaded, so this guy, when run on the parent /mnt directory, descends into all of the mounts and zaps the files when found for me, all i have to do is rmq file1.mp4, rmq file2.jpg, etc.
this took 5 minutes to make and yet i procrastinated doing it for the past many months- † top dog :pedomustdie: likes this.