in reply to Sorting Text DB

You might want to look at grep.

perldoc -f grep

--
Its like a dog that can sing and dance.
It's remarkable because it can do it.
Not that it can do it well.