From 59beaba426ad3a9e2c62fbc18b0945ccdbf09a74 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Wed, 17 Nov 2010 14:11:50 -0300 Subject: [PATCH] usrp/plscan: truncate title at the last dot, not the first - usrp/plscan: change ${n%%.*} to ${n%.*} - usrp/README: updated description --- usrp/README | 2 +- usrp/plscan | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/usrp/README b/usrp/README index 8b9f177..4223be4 100644 --- a/usrp/README +++ b/usrp/README @@ -188,6 +188,6 @@ gnuplot to output either in a window or to a PNG file. Usage: plscan [-o pngfile] file ... More than one graph can be plotted in the same run. The file name is used -as the title for each graph. Titles are truncated at the first dot. +as the title for each graph. Titles are truncated at the last dot. Example: ./plscan testant.out diff --git a/usrp/plscan b/usrp/plscan index 6bf8620..9dd9a6e 100755 --- a/usrp/plscan +++ b/usrp/plscan @@ -24,7 +24,7 @@ set title "Received signal strength" set data style errorlines plot \ `for n in $@; do - echo -n $comma \'$n\' title \'${n%%.*}\' + echo -n $comma \'$n\' title \'${n%.*}\' comma=, done` EOF