I need to perform some sorting, cutting and pasting in my Cocoa app on ASCII files. No - not the cutting and pasting found under the edit menu, but like the commands used at the command line. In "Building Cocoa Applications" from O'Reilly, I noticed they created a small app with lex and yacc and then linked it with the Cocoa application with a pipe from within Project Builder/ Xcode. Is it possible to do this as well with the cut, sort, paste and join commands used in bash? Or am I going about this the wrong way? Are there similar Cocoa API's that do this?