Date: Wed, 17 Jan 2007 13:07:58 -0800 From: "Greg Albrecht" <gregoryba@gmail.com> To: "Joshua Lewis" <joshua.lewis@familyfunzone.net> Cc: freebsd-questions@freebsd.org Subject: Re: Grep a file Message-ID: <39ed86f90701171307u7482495co56d270b82738aefe@mail.gmail.com> In-Reply-To: <B43C5A3B-2DE3-4853-84FF-524B7C3F3D71@familyfunzone.net> References: <CDC3A051-F2E4-43E6-9200-9272C3C432FE@familyfunzone.net> <39ed86f90701171215u56acb7c8y49a2c5eb840d0b13@mail.gmail.com> <B43C5A3B-2DE3-4853-84FF-524B7C3F3D71@familyfunzone.net>
next in thread | previous in thread | raw e-mail | index | archive | help
try to 'sudo su' first, then run the grep. -g On 17/01/07, Joshua Lewis <joshua.lewis@familyfunzone.net> wrote: > > When I run: > sudo grep -v '^\;'extentions.conf > new_extentions.conf > > I get: > -bash: new_extentions.conf: Permission denied > > > > > Sincerely, > Joshua Lewis > joshua.lewis@familyfunzone.net > > > > > On Jan 17, 2007, at 3:15 PM, Greg Albrecht wrote: > > this might work: > > grep -v '^\;' originalfile > newfile > > -g > > On 17/01/07, Joshua Lewis <joshua.lewis@familyfunzone.net> wrote: > I have a config file that uses ; as a comment character. > Unfortunately there are soooooooo many comments I can't read the > options that have been enabled. > > Can I use grep or another tool to pull all the lines in this file > that do not start with the ; and place them into another file so I > can actually read what this file is doing? > > Thanks for any help. > > > > Sincerely, > Joshua Lewis > joshua.lewis@familyfunzone.net > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > > > -- > Greg Albrecht (gregoryba@gmail.com) > An Indie, Hip Hop and IDM Podcast: The Letter G > http://theletterg.org > > > -- Greg Albrecht (gregoryba@gmail.com) An Indie, Hip Hop and IDM Podcast: The Letter G http://theletterg.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39ed86f90701171307u7482495co56d270b82738aefe>