Index: edit.sh |
diff --git a/edit.sh b/edit.sh |
new file mode 100755 |
index 0000000000000000000000000000000000000000..8fce43ed08df56c8307aef136abc04c11b8440a6 |
--- /dev/null |
+++ b/edit.sh |
@@ -0,0 +1,25 @@ |
+#!/bin/sh |
+ |
+# Filter out uninformative output lines from the ldap-sync cron job script |
+ |
+last_updated="" |
+ |
+while read line; do |
+ case "$line" in |
+ *Updating*|*Creating*) |
+ last_updated="$line" |
+ ;; |
+ *-\>*) |
mathias
2018/06/05 14:32:19
Is there ever a case where we could encounter mult
|
+ echo "$last_updated" |
+ echo "$line" |
+ ;; |
+ *Found* | \ |
+ *\#* | \ |
+ *Synchronizing*) |
+ continue |
+ ;; |
+ *) |
+ echo "$line" |
+ ;; |
+ esac |
+done |