The first time you run TextWrangler after installation, it will offer to
install the “edit”, “twdiff”, and “twfind” command line tools for you.
You can use the “edit” command line tool to open files into TextWrangler
via the Unix command line.
To open a file into TextWrangler from the command line, type
To launch TextWrangler without opening a file (or to activate the
application if it is already running), type edit -l
You can also pipe STDIN to the “edit” tool,
and it will open in a new untitled window in TextWrangler:
for example, ls -la | edit
If you just type edit with no parameters, the tool will accept STDIN from the terminal;
type Control-D (end-of- file) to terminate and send it to TextWrangler.