From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 27 Aug 2004 09:24:12 +0300 From: Dolgov OV To: community@altlinux.ru Subject: Re: [Comm] grep -? Message-Id: <20040827092412.337abeb1.dov@media-link.info> In-Reply-To: <20040826165623.GG4278@notebook.wrarsdomain> References: <20040826171028.4eb691b5.dov@media-link.info> <20040826143004.GB4278@notebook.wrarsdomain> <20040826175806.629fc05d.dov@media-link.info> <20040826165623.GG4278@notebook.wrarsdomain> X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i586-alt-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=Windows-1251 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at media-link.info X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: community@altlinux.ru List-Id: Mailing list for ALT Linux users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Aug 2004 06:23:06 -0000 Archived-At: List-Archive: List-Post: On Thu, 26 Aug 2004 22:56:24 +0600 Andrey Rahmatullin wrote: > On Thu, Aug 26, 2004 at 05:58:06PM +0300, Dolgov OV wrote: > ># egrep -v ^(#|$) sources.list > >bash: syntax error near unexpected token `(' > Тьфу, не проверивши написал. > egrep -v '^(#|$)' sources.list > > Кстати, здесь именно egrep. Просто grep не подойдет. > Спасибо. Работает. grep -E -v '^(#|$)' /etc/apt/sources.list -- С наилучшими, Олег Долгов Registered Linux user #315454