| Index: edit.sh |
| diff --git a/edit.sh b/edit.sh |
| new file mode 100755 |
| index 0000000000000000000000000000000000000000..c36feb9126ec0e8da47dac45754b0e8c2311e593 |
| --- /dev/null |
| +++ b/edit.sh |
| @@ -0,0 +1,34 @@ |
| +#!/bin/sh |
| + |
| +# Filter out uninformative output lines from the ldap-sync cron job script |
| + |
| +last_action="" |
| +last_updated="" |
| + |
| +while read line; do |
| + case "$line" in |
| + *Updating*|*Creating*) |
| + last_updated="$line" |
| + ;; |
| + *-\>*) |
| + case "$last_action" in |
| + *-\>*) |
| + echo "$line" |
| + continue |
| + ;; |
| + esac |
| + echo "$last_updated" |
| + echo "$line" |
| + ;; |
| + *Found* | \ |
| + *\#* | \ |
| + *Synchronizing*) |
| + continue |
| + ;; |
| + *) |
| + echo "$line" |
| + ;; |
| + esac |
| + |
| + last_action="$line" |
| +done |