Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. #!/bin/sh
  2. if [ -f "/etc/accounting.conf" ]; then
  3.     . /etc/accounting.conf
  4. else
  5.     echo "/etc/accounting.conf not found"
  6.     exit 1
  7. fi
  8. IP_N=`cat /etc/hosts |grep -c $ACCOUNTING_INT`
  9. echo Anzahl: "$IP_N"
  10.  
  11. IP1=`cat /etc/hosts |grep $ACCOUNTING_INT|cut -d' ' -f1`
  12. echo Eingelesene IP: "$IP1"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement