Index: edit.sh |
diff --git a/edit.sh b/edit.sh |
new file mode 100755 |
index 0000000000000000000000000000000000000000..59b2c4c8a247c2c627726001cc997773ae02e487 |
--- /dev/null |
+++ b/edit.sh |
@@ -0,0 +1,7 @@ |
+#!/bin/sh |
+ |
+# Filtering out repeated lines from LDAP sync cron job output |
+ |
+output=`cat /dev/stdin | grep -v '#' | grep -v 'Synchronizing' | grep -v 'Found' | grep -B 1 -e '->'` |
+ |
+echo $output | cut -b3- | sed 's/-[->]/\n/g' |