On Jan 1, 2007, at 8:54 AM, Olof Svensson wrote:

> Hallo and thanks.
>
> I can se now I was trying to write an if-else and mistakingly using  
> a doubble pipe for 'OR'
>
> Now I have skiped the if-else an the filtering works good.
>
> I even understand why I dont need file in the second grep now.
>
> THANKS
>
> Now the problen to pip it to BBEdit or another file fom the script  
> remains.
>
> this works from appl "Terminal"
>
> 	$ grep -v '127.0.0' $filname | grep -v '192.168.0.' | bbedit
>
> but not from the script.
>
> If You have some more time to spend on me.

You may have to fully qualify the path for bbedit.  "which bbedit"  
will find it.

If that doesn't help the script run


$ grep -v '127.0.0' $filname | grep -v '192.168.0.' >/tmp/junkfile.txt
$ open -a BBEdit /tmp/junkfile.txt