Pipe output from command line tools to a text editor

· 62 Words

A useful feature is to pipe the result of a command such as ls to a text editor. This can be done by using:

	ls | open -f

Using the -a flag for open makes this even more useful allowing you to specify the application to open the output in e.g to open in TextMate use:

	ls | open -f -a Textmate