mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit 93ab2b7b990393367e46cd0274d61603758bee38
parent d0602b99dd4ff840a6d3ffdfb017c6ca8b574fe4
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Mon,  9 Mar 2015 16:13:53 +0100

only look at first part of hostname

Diffstat:
check-packages.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/check-packages.sh b/check-packages.sh @@ -4,7 +4,7 @@ # HOSTNAME file1 file2 file3 comm -3 <(apt-mark showmanual | sort) \ - <(grep "^`hostname`" ~/config/private/apt/machines | + <(grep "^`hostname | cut -d'.' -f1`" ~/config/private/apt/machines | cut -d ' ' -f2- | tr ' ' '\n' | grep -v '^\s*$' | sed "s_^_$HOME/config/apt/_" | xargs sort | cut -d ' ' -f1 | cut -d '#' -f1 |