On Thu, Oct 15, 2015 at 11:06:34PM -0400, Patrick Shanahan wrote:
> * Peter P. <peterpar...@fastmail.com> [10-15-15 18:28]:
> > * Patrick Shanahan <p...@opensuse.org> [2015-10-15 18:04]:
> > > * Peter P. <peterpar...@fastmail.com> [10-15-15 16:30]:
> > > > Hi list,
> > > > 
> > > > please excuse me if this is slightly offtopic, nevertheless this seems a
> > > > propoer community to ask.
> > > > 
> > > > Does anyone know if/how I can export an abook data file to a format that
> > > > can be merged with lbdb's m_inmail.list file?
> > > 
> > > lbdb can read abook, /usr/lib64/lbdb/m_abook
> > > 
> > > I believe if configured that it will automatically include abook addresses
> > > and will provide them when queried.
> > 
> > Thank you, this is what I am already doing successfully. I would just
> > like to uninstall abook altogether (I am not using it really) and rely
> > only on lbdb, hence I would like to import/merge abook's datafile into
> > ~/.lbdb/m_inmail.list
> 
> lbdbq > m_inmail.list.new
> 
> cat m_inmail.list > m_inmail.list.new

Shouldn't that be:
cat m_inmail.list >> m_inmail.list.new

otherwise it just overwrites previous output of previous instruction?

> sort m_inmail.list.new | sort | uniq > m_inmail.list.new2
> 
> inspect m_inmail.list.new2
> 
> If satisfied, mv m_inmail.list m_inmail.list.old
>               mv m_inmail.list.new2 m_inmail.list
> 
> When happy with new list, rm m_inmail.list.old

-- 
"If you're not careful, the newspapers will have you hating the people
who are being oppressed, and loving the people who are doing the 
oppressing." --- Malcolm X

Reply via email to