rename clean_images.sh to clean_file.sh

This commit is contained in:
2023-11-01 11:36:12 +00:00
parent b8d06ce140
commit 108f254dd3

7
clean_files.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
# script for looping through each file in a directory, opening it with mimeopen, and upon the closing of the file viewer, asking the user whether or not to delete the image, and deleting if "y" received
for file in *
do
mimeopen "$file" && read -p "Delete file? [y/n]: " ans && [ "$ans" = "y" ] && rm "$file"
done