From 2788e0770ec039d64eb2af91542e324465ba6f53 Mon Sep 17 00:00:00 2001 From: David Thurstenson Date: Sat, 13 Mar 2021 17:23:34 -0600 Subject: [PATCH] countupdates: instead of just a count, show list and append count --- .bashrc.d/10-alias.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc.d/10-alias.bash b/.bashrc.d/10-alias.bash index b882895..8f023e4 100644 --- a/.bashrc.d/10-alias.bash +++ b/.bashrc.d/10-alias.bash @@ -30,8 +30,8 @@ alias printuuid='blkid -o value -s UUID' # Output only the PARTUUID of the target device alias printpartuuid='blkid -o value -s PARTUUID' -# Show count of updates from checkupdates -alias countupdates='checkupdates | wc -l' +# Show count of updates after the output of checkupdates +alias countupdates='checkupdates | tee >(wc -l)' # Grep through updates listed by checkudpdates alias grepupdates='checkupdates | grep'