dot_testing/builds/utils/mass_delete

12 lines
166 B
Plaintext
Raw Normal View History

2024-07-22 14:03:45 -05:00
#!/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