From 8499e1449635a2d267cf3926f0bdbebb5b0c56e8 Mon Sep 17 00:00:00 2001 From: lclerel- lclerel- Date: Tue, 3 Mar 2026 16:30:16 +0100 Subject: [PATCH] Exos (Update Ex0) --- ex0/find_sh.sh | 1 + ex1/clean | 1 + ex2/count_files.sh | 1 + 3 files changed, 3 insertions(+) create mode 100755 ex0/find_sh.sh create mode 100755 ex1/clean create mode 100755 ex2/count_files.sh diff --git a/ex0/find_sh.sh b/ex0/find_sh.sh new file mode 100755 index 0000000..94a5693 --- /dev/null +++ b/ex0/find_sh.sh @@ -0,0 +1 @@ +find . -iname "*.sh" -execdir sh -c 'printf "%s\n" "${0%.*}"' {} ';' | cut -c3- diff --git a/ex1/clean b/ex1/clean new file mode 100755 index 0000000..62e1933 --- /dev/null +++ b/ex1/clean @@ -0,0 +1 @@ +find . -type f -name "*~" -print -delete -o -name "#*#" -print -delete diff --git a/ex2/count_files.sh b/ex2/count_files.sh new file mode 100755 index 0000000..0815deb --- /dev/null +++ b/ex2/count_files.sh @@ -0,0 +1 @@ +find | wc -l