Analysing Positions in Databases with a program I've got two questions. I'm wondering if:


It is possible to search for certain positions in a database (like Chessbase) and display all of them in a text file.
To be able to assign a score to each position automatically with a chess engine. 


I've got some notions of programming but I wouldn't mind getting some ideas on how to write such a program.
I am the author of pgn-extract and, as has been pointed out, it doesn't hook up directly with a chess engine. However, if you would like to try out something I recently wrote that does interface with an engine then there is a description of a UCI-based analyser that can output annotated PGN via its --annotatePGN option. It is still a little experimental and you will need to compile from source but it might provide something close to what you are looking for.