Merge branch 'release-2.140.115'
[feisty_meow.git] / scripts / files / find_readonly.sh
diff --git a/scripts/files/find_readonly.sh b/scripts/files/find_readonly.sh
new file mode 100644 (file)
index 0000000..833dd17
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# locates read only files in the directories specified.
+# this is a much simpler and more efficient command than some i've seen
+# floating about; it gets the find command to do all the heavy lifting
+# and doesn't try to build impossibly large command lines.
+
+find "${@}" -follow -type f -perm -u+r -a ! -perm -u+w 
+