textutil can be used to manipulate text files of various formats, using the mechanisms provided by the Cocoa text system.