Re: [Gpsbabel-code] WHITESPACE
Brought to you by:
robertl
From: Rick R. <ri...@mn...> - 2003-10-24 11:37:59
|
On Wed, Oct 22, 2003 at 08:28:29AM -0500, Alex Mottram wrote: > "Some Waypoint Name\t30.1208\t-91.5933\tSome Other Text\n" > > I stopped thinking. There are three different (and valid) whitespaces in that > line. ...and 8 WHITESPACE separated fields. There cannot be embedded spaces in the fields. In the case of GpsDrive, if you try to name a waypoint with embedded spaces, it converts them to '_'. Its a pretty stupid database schema. I would define WHITESPACE the same as awk in POSIX mode (i.e. newline doesn't count as whitespace, but runs of spaces and/or tabs do) $ echo -e "foo\t \t \tbar" | awk '{print $2}' bar -Rick -- Rick Richardson ri...@mn... http://home.mn.rr.com/richardsons/ Stock information at your fingertips: http://linuxtrade.0catch.com/ I still say awk '{print $1}' a lot. -- Larry Wall |