Noah wrote:
> I am unable to figure out why I am getting the following error: "-bash:
> /Users/user/.bashrc: line 10: syntax error: unexpected end of file
[...]
> localhost:~ user$ cat .bashrc
> #nc_fix() { sudo kill -9 $"(ps auxwww | grep [nN]cproxyd | awk '{print
> $2}')" }
> nc_fix() { sudo kill -9 $(ps auxwww | grep "[nN]cproxyd" | awk '{print
> $2}') }
The } is a statement, and must be preceded with a newline or a ;.
Try:
nc_fix() { sudo kill -9 $(ps auxwww | grep "[nN]cproxyd" | awk '{print
$2}'); }
or
nc_fix() {
sudo kill -9 $(ps auxwww | grep "[nN]cproxyd" | awk '{print $2}')
}
Everything that follows right now is part of the definition of nc_fix().
When you get to the end of the file, it says "Hey! I'm still defining a
function!"
--
Chris Cowart
Network Technical Lead
Network & Infrastructure Services, RSSP-IT
UC Berkeley
pgp8Ud6NqCehN.pgp
Description: PGP signature
