find . -type f -exec file {} + \ | while IFS=':' read file type do if echo "$type" | grep -qi 'executable' then rm "$file" fi done
deleted file mode 100755
Binary files a/lab1/lab1-1 and /dev/null differ
Binary files a/lab1/lab1-1 and b/lab1/lab1-1 differ
new file mode 100755
Binary files /dev/null and b/lab1/lab1-1 differ