16 lines
293 B
Bash
16 lines
293 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if [ -z "$1" -o ! -f "$1" ]; then
|
||
|
echo Need filename
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
for GROUP in alpine archlinux centos debian devuan fedora oracle opensuse ubuntu voidlinux
|
||
|
do
|
||
|
grep "${GROUP}" "$1" | while read NAME IP REST
|
||
|
do
|
||
|
echo -e "${IP}\t${NAME}.heinlein.akademie\t\t${NAME}"
|
||
|
done
|
||
|
done
|
||
|
|