summaryrefslogtreecommitdiff
path: root/home/xyz/.local/bin/chmodef
diff options
context:
space:
mode:
Diffstat (limited to 'home/xyz/.local/bin/chmodef')
-rwxr-xr-xhome/xyz/.local/bin/chmodef5
1 files changed, 5 insertions, 0 deletions
diff --git a/home/xyz/.local/bin/chmodef b/home/xyz/.local/bin/chmodef
new file mode 100755
index 00000000..be9b2934
--- /dev/null
+++ b/home/xyz/.local/bin/chmodef
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+# https://wiki.archlinux.org/title/File_permissions_and_attributes#Numeric_method
+find "$@" -type d -execdir chmod 755 -- '{}' \+
+find "$@" -type f -execdir chmod 644 -- '{}' \+