On Sun, Jun 22, 2003 at 09:54:33AM +0100, Hugh Saunders wrote: > hello, a couple of fairly simple bashish questions: > > 1. whats the advantage of using |tee -a rather than >> ?
tee displays its input on standard output as well as writing it to the file. > 2. how can i consolidate |grep -v from |grep -v archive? > - i think it should be something like |grep -v \(archive|from\) but that > doesnt seem to work.. You need quotes, and you need '\|' rather than '|'. Try this: grep -v '\(archive\|from\)' Alternatively, extended regular expressions make grouping slightly easier: egrep -v '(archive|from)' -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]