Implement an algorithm to merge an arbitrary number of sorted lists into one sorted list. The aim is to create the smallest working programme, in whatever language you like.
GNU system scripting (I guess that's cheating, but it is nice to know too).
sort -m file1 file2 file3 ...