From 2417a6b7603524dc5cd30d29b153f91024b9443d Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Wed, 1 Nov 2023 22:54:27 +0100 Subject: Move to Jekyll --- _posts/2023-05-16-mass-set-permission.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 _posts/2023-05-16-mass-set-permission.md (limited to '_posts/2023-05-16-mass-set-permission.md') diff --git a/_posts/2023-05-16-mass-set-permission.md b/_posts/2023-05-16-mass-set-permission.md new file mode 100644 index 0000000..654d9d1 --- /dev/null +++ b/_posts/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