1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-22 20:03:09 +02:00

usrp/plscan: instead of echo ... sed ..., just use ${n%%.*}

This commit is contained in:
Werner Almesberger 2010-11-17 13:45:19 -03:00
parent e31144ff5f
commit 45d5946435

View File

@ -24,7 +24,7 @@ set title "Received signal strength"
set data style errorlines set data style errorlines
plot \ plot \
`for n in $@; do `for n in $@; do
echo -n $comma \'$n\' title \'\`echo "$n" | sed "s/\..*//"\`\' echo -n $comma \'$n\' title \'${n%%.*}\'
comma=, comma=,
done` done`
EOF EOF