On Wednesday 17 January 2007 14:52, Joshua Lewis wrote: > When I run: > sudo grep -v '^\;'extentions.conf > new_extentions.conf > > I get: > -bash: new_extentions.conf: Permission denied
You're running grep via sudo, but the redirection is handled by the shell, wish is still running as you. Either run "sudo -s" to get a root prompt, or: sudo sh -c "grep -v '^\;'extentions.conf > new_extentions.conf" which runs your entire command line, redirection and all, as root. -- Kirk Strauser
pgpqrHvsqildR.pgp
Description: PGP signature