lynis/extras/check-lynis.sh

5 lines
158 B
Bash
Raw Normal View History

2014-08-26 17:33:55 +02:00
#!/bin/sh
# Check for double ID numbers
grep -r Register .. | awk '{ if($2=="Register") { print $4 } }' | sort | uniq -c | awk '{ if ($1!=1) { print $2 } }'