I want to move all .jpg and .jpeg files whose size is more than 10 kb. The code below moves only jpg with size greater than 10 kb. All .jpeg files are moved regardless of the size.
#!/bin/bash
mkdir notmyprograms
cd testprog
for file in $(find -name "*.jpeg" -o -name "*.jpg" -a -size +10k)
do
mv $file /home/rayan-ali/Desktop/notmyprograms/
done