Left: | ||
Right: |
OLD | NEW |
---|---|
(Empty) | |
1 #!/bin/sh | |
2 | |
3 # Filtering out repeated lines from LDAP sync cron job output | |
4 | |
5 output=`cat /dev/stdin | grep -v '#' | grep -v 'Synchronizing' | grep -v 'Found' | grep -B 1 -e '->'` | |
6 | |
7 echo $output | cut -b3- | sed 's/-[->]/\n/g' | |
OLD | NEW |