From 02e19c7e50888bd47850c5f2a5e5c656508e6724 Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Thu, 20 Oct 2011 18:51:04 +0200 Subject: contrib: Use sed with extended regexps This makes the regular expression easier to read since less characters need to be escaped. --- contrib/osmo_pcap_clean_old | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit v1.2.3