script to recursively search for mac-generated garbage files and purge them.

This commit is contained in:
2020-10-24 10:19:02 -07:00
parent 958c0fe15e
commit b5d409ce8b
Executable
+11
View File
@@ -0,0 +1,11 @@
test(){
local f=$1
local result=file "$f"
return result
}
for i;
do
find "$i" -iname "._*" -exec test "{}" \;;
find "$i" -iname ".DS*" -exec test "{}" \;;
done