[arm-allstar] Control characters in the /var/log/asterisk/astdb.txt file

Mark Grigsby ka7fha at gmail.com
Thu Jun 21 10:42:27 EST 2018


You can try using "grep -a" and it will work.  You don't even have to
delete the lines with the extended charactors as it will just display
them as shown in the example. -a treats binary as text, the 'i' is for
insensitive to case.

 asterisk]# grep -ai k0jsc /var/log/asterisk/astdb.txt
28257|K0JSC|Hub Node|Pueblo, CO
28289|K0JSC|Web TX Hub|Pueblo, Colorado
28298|K0JSC|Ca�on Gateway|Ca�on City, Colorado
28299|K0JSC|<None>|Canon City, Colorado
28368|K0JSC|<None>|Denver, Colorado
28370|K0JSC|<None>|Pueblo, CO
28371|K0JSC|<None>|Pueblo, CO





On Thu, Jun 21, 2018 at 7:42 AM "Tim Sawyer via arm-allstar"
<arm-allstar at hamvoip.org> wrote:
>
> I replied twice to this thread but the did not come through for some
> reason. Here are my latest thoughts.
>
> The problem is not corruption. It's extended characters such as umlaut.
> Users are adding theses to their location which is perfectly acceptable and
> displays fine on most browsers. Look at the node list for node 2548.
>
> It doesn't look like there is a way to encode these in a text file and have
> them display properly... but I'm still looking. I not going to delete them
> as in David's C program because I think that having something there is
> better than there being no hint that something not displayed properly.
>
> On Wed, Jun 20, 2018 at 9:51 AM "Jeff via arm-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
> > Grep can not be used effectively in this daily updated file because it
> > contains ascii control characters.
> > examples
> > 2458|DB0FUE|438.625-|F�rth2524|W6SEL-R|444.1250+ DX-PiNOY�~Y|Sierra Vista,
> > ArizonA27282|EB4CPK|<None>|Don Benito, Badajoz,
> > Espa�a28261|SA3BDE|145.325Mhz|Bolln�s28298|K0JSC|Ca�on Gateway|Ca�on City,
> > Coloradoetcetc
> > Dose anyone else care?
> >
> > _______________________________________________
> >
> > arm-allstar mailing list
> > arm-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
>
>
> --
> Tim WD6AWP
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org



-- 
DE KA7FHA
--
Some carbon based operating systems should be left with no accessible
keyboard or mouse


More information about the arm-allstar mailing list