From 017b26446442743aa87842ef32b6cc86909147cc Mon Sep 17 00:00:00 2001 From: Timo Schmidt Date: Wed, 15 Mar 2023 18:49:26 +0100 Subject: [PATCH] Make find_sh.sh cleaner --- ex02/find_sh.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ex02/find_sh.sh b/ex02/find_sh.sh index 75704ca..2088eca 100755 --- a/ex02/find_sh.sh +++ b/ex02/find_sh.sh @@ -1,3 +1,3 @@ #!/bin/sh -find . -type f -name "*.sh" | xargs -I{} basename {} | sed 's/\.sh$//g' +find . -type f -name "*.sh" -exec basename {} .sh \;