rename clean_images.sh to clean_file.sh
This commit is contained in:
7
clean_files.sh
Executable file
7
clean_files.sh
Executable 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
|
Reference in New Issue
Block a user