1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-11-05 03:51:32 +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
plot \
`for n in $@; do
echo -n $comma \'$n\' title \'\`echo "$n" | sed "s/\..*//"\`\'
echo -n $comma \'$n\' title \'${n%%.*}\'
comma=,
done`
EOF