parse only new files
authorDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 26 Oct 2014 15:46:25 +0000 (16:46 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Sun, 26 Oct 2014 15:46:25 +0000 (16:46 +0100)
dumps/Makefile [deleted file]
dumps/parse.sh [new file with mode: 0755]

diff --git a/dumps/Makefile b/dumps/Makefile
deleted file mode 100644 (file)
index 98414d1..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-all:
-       ls *.log | xargs -i sh -cx "./portmon-parse.pl {} | grep -v ^# > {}.txt"
diff --git a/dumps/parse.sh b/dumps/parse.sh
new file mode 100755 (executable)
index 0000000..ad4f89c
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh -xe
+
+ls *.log | xargs -i sh -cx "test ! -e {}.txt && ( ./portmon-parse.pl {} | grep -v ^# > {}.txt )"