commit 3a437c7efae4f8e669ec88a5199e3eb6181646d1 parent 58f73807a52964c6d7206290659a59570ee58841 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Sat, 3 Jan 2015 00:37:49 +0100 support different files Diffstat:
check-packages.sh | | | 8 | +++++++- |
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/check-packages.sh b/check-packages.sh @@ -1,3 +1,9 @@ #!/bin/bash -comm -3 <(apt-mark showmanual | sort) <(sort ~/config/apt/* | cut -d ' ' -f1) +# ~/config/private/apt/machines contains lines of the form: +# HOSTNAME file1 file2 file3 + +comm -3 <(apt-mark showmanual | sort) \ + <(grep "^`hostname`" ~/config/private/apt/machines | + cut -d ' ' -f2- | tr ' ' '\n' | grep -v '^\s*$' | + sed "s_^_$HOME/config/apt/_" | xargs sort | cut -d ' ' -f1)