add shebang and mass_delete

This commit is contained in:
stupidcomputer 2024-07-22 14:03:45 -05:00
parent 5f17ccf995
commit b834f6e76a
2 changed files with 13 additions and 0 deletions

11
builds/utils/mass_delete Executable file
View File

@ -0,0 +1,11 @@
#!/bin/sh
temp=$(mktemp)
ls > $temp
nvim "$temp"
different=$(ls | cat "$temp" - | sort | uniq -u)
rm $different
for i in $different; do
printf "rm %i\n" "$i"
done

View File

@ -1,3 +1,5 @@
#!/bin/sh
temp=$(mktemp)
ls > $temp
nvim $temp