We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b3d9b3 commit 7a86de5Copy full SHA for 7a86de5
1 file changed
specs/shell/search_files_and_process.yaml
@@ -0,0 +1,20 @@
1
+---
2
+name: Search for specified file types and process the file
3
+command: "find -E {{path}} -iregex \".*\\.({{extensions}})\" -print | xargs -n1 -I _item {{command}} _item"
4
+tags:
5
+ - shell
6
+description: Use the Find command to search for specified file types and process each file
7
+arguments:
8
+ - name: path
9
+ description: The path to search for files.
10
+ default_value: .
11
+ - name: extensions
12
+ description: The file extensions to search for.
13
+ default_value: jpg|jpeg|png|bmp
14
+ - name: command
15
+ description: The command to execute on each file.
16
+ default_value: echo
17
+source_url: "https://linuxize.com/post/how-to-find-files-in-linux-using-the-command-line/"
18
+author: funnyzak
19
+author_url: "https://github.com/funnyzak"
20
+shells: []
0 commit comments