aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/osmo_pcap_clean_old
diff options
context:
space:
mode:
authorDaniel Willmann <daniel@totalueberwachung.de>2011-10-20 18:51:04 +0200
committerDaniel Willmann <daniel@totalueberwachung.de>2011-10-20 18:51:04 +0200
commit02e19c7e50888bd47850c5f2a5e5c656508e6724 (patch)
tree8fd5c6f45a07fd536bb6caf9b0360b636e779989 /contrib/osmo_pcap_clean_old
parent5a1c292140e2823a1216da23c5ac5221223e295b (diff)
contrib: Use sed with extended regexpsdaniel/clean-script-fixes
This makes the regular expression easier to read since less characters need to be escaped.
Diffstat (limited to 'contrib/osmo_pcap_clean_old')
-rwxr-xr-xcontrib/osmo_pcap_clean_old2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/osmo_pcap_clean_old b/contrib/osmo_pcap_clean_old
index 9409abf..9bcf534 100755
--- a/contrib/osmo_pcap_clean_old
+++ b/contrib/osmo_pcap_clean_old
@@ -80,7 +80,7 @@ do_zip()
}
# Use an explicit pattern here
-find . -name "trace-*.pcap*" |sed -n -e "s/.*trace-\(.\+\)-[0-9]\{8\}_[0-9]\{6\}\.pcap\(\..\+\)\?/\1/p" |sort |uniq | while read CLIENT; do
+find . -name "trace-*.pcap*" |sed -n -re "s/.*trace-(.+)-[0-9]{8}_[0-9]{6}\.pcap(\..+)?/\1/p" |sort |uniq | while read CLIENT; do
[ $VERBOSE -eq 1 ] && echo "Cleaning logs for $CLIENT"