Browse code

Remove executables

find . -type f -exec file {} + \
| while IFS=':' read file type
do
if echo "$type" | grep -qi 'executable'
then
rm "$file"
fi
done

Robert Cranston authored on 27/02/2024 02:27:26
Showing 1 changed files

1 1
deleted file mode 100755
2 2
Binary files a/lab1/lab1-1 and /dev/null differ