From a6438e0e5f9ee6c2c35fdcd2ca159f53f8bba716 Mon Sep 17 00:00:00 2001 From: home Date: Sun, 26 Nov 2023 00:10:31 +0300 Subject: [PATCH] find_ext : print each ext on separate line. --- .config/bash/module/find.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.config/bash/module/find.sh b/.config/bash/module/find.sh index 6f30ba3..da93f02 100644 --- a/.config/bash/module/find.sh +++ b/.config/bash/module/find.sh @@ -2,6 +2,5 @@ find_ext() { local types=($(find -type f | sed -e "s/.*\///" -e "s/^\.//" -e "/\./!d" -e "s/.*\.//")) - echo "${types[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' ' - echo + echo "${types[@]}" | tr ' ' '\n' | sort -u }