From: hadaq Date: Thu, 31 Aug 2017 12:55:32 +0000 (+0200) Subject: treat case of empty argument X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=1dc4566e6531603cc851a74474e5cd1a9f7e29b2;p=daqtools.git treat case of empty argument --- diff --git a/thresholds/split_thresholds.sh b/thresholds/split_thresholds.sh index 023324a..41a102c 100755 --- a/thresholds/split_thresholds.sh +++ b/thresholds/split_thresholds.sh @@ -1,3 +1,8 @@ +if test -z "$1"; then + echo "usage: ./split_thresholds.sh filename" + exit +fi + grep "endpoint: 0x2000, chain: 00" $1 > mcp00.log grep "endpoint: 0x2000, chain: 01" $1 >> mcp00.log grep "endpoint: 0x2000, chain: 02" $1 >> mcp00.log