Friday, September 16, 2005

Redirecting Command Line Tools Output to TextEdit (Mac OS X)

I just found out that the command line tool open can be used other than to open a document. You might already know that you can open any file on the terminal using the open command, but open can also be used to pipe the output of command line tools to TextEdit (so it can be easily copied or processed). To do that you only need to give the -f option:

ls | open -f

Will open a TextEdit with containing the listing of the current folder.

0 Comments:

Post a Comment

<< Home