Assuming IDRISI really can import a map as an ascii file
with one cell value per line, it's easy to create that in
GRASS 4.0:
g.region rast=map_to_export
r.stats -1c map_to_export output=text.file
each cell value will be dumped to a separate line in
the text.file
Jim Hinthorne