Hej Mark and a Happy New Year to you
English is not my first language. I try to keep it short but I dont
whant to sound rude.
I have:
OS X 10.3.9 and Bash as shell.
a .bash_profile file with < PATH=$PATH":/Users/neko/bin" >
in my bin folder: a script:
#!/bin/bash
alog="/private/var/log/httpd/access_log"
ip1="127.0.0.1"
ip2="192.168.0.101"
if grep -v $ip1 $alog || grep -v $ip2 $alog
then
...
fi
___________ END of script ________________
I try to open my 'access_log' and filter away (!) two ip-numbers, and
pipe the result to 'BBEdit'
Problem
if grep -v $ip1 $alog || grep -v $ip2 $alog (dont work) but
if grep -v $ip1 $alog (work)
and how do I the pipe the result to a new BBEdit-file
If you or sombody else have an answer PLEASE CC me at [log in to unmask]
--
Olof Svensson