[Xastir] New capability: 2008 Tiger Shapefile street maps
Jeremy Utley
jerutley at gmail.com
Sat Apr 18 13:41:41 EDT 2009
On Sat, Apr 18, 2009 at 5:07 AM, Curt, WE7U <archer at eskimo.com> wrote:
> vi ~/.xastir/config/map_index.sys
> :g/tabblock/s/01000/00995/
> :g/pointlm/s/01000/00996/
> :g/arealm/s/01000/00997/
> :wq
>
> (Who's a "sed" user? Give us some commands to do the same thing in
> sed please! Commands should be similar but can then be scripted.)
Curt - try out something like this:
sed -i -e "/tabblock/s/01000/00995/g" \
-e "/pointlm/s/01000/00996/g" \
-e "/arealm/s/01000/00997/g" map_index.sys
If I remember my seddish correctly, that should do it. Note this
would require GNU sed for the -i parameter (in place) - with other sed
binaries, you'd need something more like this:
cp map_index.sys mapindex.sys.bak
sed -e "/tabblock/s/01000/00995/g" \
-e "/pointlm/s/01000/00996/g" \
-e "/arealm/s/01000/00997/g" map_index.sys.bak > map_index.sys
Someone please try this out and see if it works like it should!
Jeremy
N0YAX
More information about the Xastir
mailing list