On 19/5/2006, at 22:43, nachodog@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).