[TxMt] Moving Text Around

Allan Odgaard throw-away-1 at macromates.com
Fri May 19 20:55:17 UTC 2006


On 19/5/2006, at 22:43, nachodog at mac.com wrote:

> Does anyone know how to take a list that looks like this. . .
> [...]
> . . . and create a new file that looks like:
> [...]
> . . . and another file that looks like:

Create a new command with input set to “entire document” and let the  
command be:

    tee >(grep ^# >/tmp/file1) | grep ^\\* >/tmp/file2

This puts all lines starting with # in file1 and the lines starting  
with * in file2 (both files end in /tmp).




More information about the textmate mailing list