Open sanderjo opened 9 years ago
Getting the file to a Ubuntu, and then doing a 'hd', shows a lot of zero's (00e185c0 to be precise))
$ hd teller5-example.txt | head -4
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00e185c0 0a 0a 30 2d 30 3a 39 36 2e 31 2e 31 28 32 30 34 |..0-0:96.1.1(204|
00e185d0 42 34 31 33 36 35 35 33 30 33 30 33 31 33 37 33 |B413655303031373|
So a cat /tmp/teller5 | tr -d '\000' | grep -vi '^$'
solves it.
Or, better: do not use "crtscts" in the stty
The temp file /tmp/teller5 is large (14MB); filled with control characters.
Because OpenWrt has no od / hd, hard to see which characters.
A tr solves this: