From d0e615922064c17ddc7fa3de95dbe47a2bfe6908 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Wed, 3 Jan 2024 10:18:15 -0500 Subject: [PATCH] filter irrelevant module output --- fetch-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch-info b/fetch-info index 956c78e..ac4fc96 100755 --- a/fetch-info +++ b/fetch-info @@ -11,7 +11,7 @@ mkdir -p modules packages units for host in ${hosts_all[@]}; do ( - ssh root@$host lsmod | sort > modules/$host + ssh root@$host lsmod | awk '{ print $1 }' | sort > modules/$host ssh root@$host pacman -Qqe > packages/$host ssh root@$host systemctl list-unit-files --state=enabled --state=disabled --state=masked | sort > units/$host ) &