I use the following bash script to move all png files to Trash,but some how it does not delete png files with only one character in its name like "a.png"
#!/usr/bin/env bash
mv ~/Desktop/screenshots/*.png ~/.Trash 2> /dev/null
if [ $? -eq 0 ]; then
echo "Files moved to Trash"
else
echo "No Files to delete"
fi
Any suggestions how to fix this ?
Thanks