MACSCRPT Archives

January 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version:
1.0 (Apple Message framework v752.2)
Content-Type:
text/plain; charset=US-ASCII; delsp=yes; format=flowed
Date:
Mon, 1 Jan 2007 12:01:01 -0500
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
From:
Mark Lively <[log in to unmask]>
In-Reply-To:
Content-Transfer-Encoding:
7bit
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Parts/Attachments:
text/plain (33 lines)
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

ATOM RSS1 RSS2