Commit bd708825 authored by Sebastian Wessalowski's avatar Sebastian Wessalowski Committed by Michael Friedrich
Browse files

grep can count on its own

Signed-off-by: default avatarMichael Friedrich <>
parent 45b14423
curl -k -s -u root:icinga 'https://localhost:5665/v1/objects/services?attrs=__name&attrs=state&filter=service.state==ServiceCritical' | grep __name | wc -l
curl -k -s -u root:icinga 'https://localhost:5665/v1/objects/services?attrs=__name&attrs=state&filter=service.state==ServiceCritical' | grep -c __name
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment