mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-04-21 12:27:27 +03:00
usrp/plscan: instead of echo ... sed ..., just use ${n%%.*}
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user