On May 19, 2006, at 1:55 PM, Allan Odgaard wrote:
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).
Marvelous! I need to study grep. I want to mark finished items with a "%" or another symbol and have it moved to a file named done.
I tried this and it didn't work:
tee >(grep ^# >/Users/ndog/Desktop/GTD_TEXT/project_list) | grep ^\*
/Users/ndog/Desktop/GTD_TEXT/nextactions | grep ^\% >/Users/ndog/
Desktop/GTD_TEXT/done
I made another command, but it would be great to have everything in one command.
tee >(grep ^% >/Users/ndog/Desktop/GTD_TEXT/done)