From 4abcce013c9ee3053badf2abda77190233066676 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Fri, 23 Feb 2024 10:35:22 +0100 Subject: Testing thoughts page --- _posts/notes/2023-05-16-mass-set-permission.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 _posts/notes/2023-05-16-mass-set-permission.md (limited to '_posts/notes/2023-05-16-mass-set-permission.md') diff --git a/_posts/notes/2023-05-16-mass-set-permission.md b/_posts/notes/2023-05-16-mass-set-permission.md new file mode 100644 index 0000000..654d9d1 --- /dev/null +++ b/_posts/notes/2023-05-16-mass-set-permission.md @@ -0,0 +1,17 @@ +--- +title: Change permissions of matching files recursively +permalink: /mass-set-permission.html +date: 2023-05-16T12:00:00+02:00 +layout: post +type: note +draft: false +tags: [linux] +--- + +Replace `*.xml` with your pattern. This will remove executable bit from all +files matching the pattern. Change `+` to `-` to add executable bit. + +```sh +find . -type f -name "*.xml" -exec chmod -x {} + +``` + -- cgit v1.2.3