|
2010-04-09
, 10:50
|
Posts: 526 |
Thanked: 99 times |
Joined on Sep 2009
|
#12
|
'/00:BD:3A/p'
|
2010-04-09
, 10:56
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#13
|
does anyone know what the syntax would be for changing this part of the sed function
to include multiple codes I've tried a few things but can't crack it jsut yet :-(Code:/00:BD:3A/p'
'/00:BD:3A\|00:BD:3B\|00:21:9E/p'
|
2010-04-09
, 13:48
|
Posts: 526 |
Thanked: 99 times |
Joined on Sep 2009
|
#14
|
|
2010-04-09
, 14:02
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#15
|
awesome that is perfect, I'm almost done, and learning loads along the way
one last thing for some reason, and I'm hoping it's not my typos again but I'm trying to do this and it isn't working
'$mycode'
where mycode="/00:BD:3A\|00:BD:3B\|00:21:9E/p"
not the end of the world, but would make my code neater.
|
2010-04-09
, 14:06
|
Posts: 526 |
Thanked: 99 times |
Joined on Sep 2009
|
#16
|
a=`hcitool scan | sed -ne 's/^[\t]\(..:..:..\).*$/\1/' -e '/00:BD:3A\|00:19:1D/p'`
|
2010-04-09
, 14:19
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#17
|
with regards to the context of the first question it's to do with this line of code
I want to start those hex codes in a variable.
With regards to the second one, I'm putting the line break into a string varialbe and then trying to output that string to the N900 notifcations screen. (the yellow bar)
the string pops up in the yellow bar but it contains the letter n instead of making the break.
The Following User Says Thank You to Rob1n For This Useful Post: | ||
|
2010-04-09
, 14:56
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#19
|
Christopher Stobbs
My Blog
Last edited by stobbsc; 2010-04-09 at 10:45.