From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3 Date: Mon, 21 Apr 2008 17:36:47 +0300 From: Michael Shigorin To: ALT Linux Team development discussions Message-ID: <20080421143647.GH22041@osdn.org.ua> Mail-Followup-To: ALT Linux Team development discussions References: <20080419154059.6F3D58E8136@ssh.git.local.altlinux.org> <75e139a00804191041h476ba0eag5fc3daa3122cacd2@mail.gmail.com> <20080419192038.GC21049@mw.office.seiros.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20080419192038.GC21049@mw.office.seiros.ru> User-Agent: Mutt/1.4.2.1i Subject: Re: [devel] [git update] packages/kernel-build-scripts: heads/master X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.10b3 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Apr 2008 14:36:48 -0000 Archived-At: List-Archive: List-Post: On Sat, Apr 19, 2008 at 11:20:38PM +0400, Денис Смирнов wrote: > >> + | sed 's/ - .*//' \ > >> + | sed 's/^kernel-modules-//' \ > >> + | sed 's/-ovz-smp$//' \ > SS> sed 's|^kernel-modules-\([^ ]\+\)-ovz-smp - .*|\1|;/^oss$/d' | > Оптимальнее, но читается и редактируется хуже. В таких случаях порой делаю подобным образом: | sed -e 's/ - .*//' \ -e 's/^kernel-modules-//' \ -e 's/-ovz-smp$//' \ -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/