From: "Денис Смирнов" <mithraen@altlinux.ru>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] [git update] packages/kernel-build-scripts: heads/master
Date: Sat, 19 Apr 2008 23:20:38 +0400
Message-ID: <20080419192038.GC21049@mw.office.seiros.ru> (raw)
In-Reply-To: <75e139a00804191041h476ba0eag5fc3daa3122cacd2@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 821 bytes --]
On Sun, Apr 20, 2008 at 12:41:49AM +0700, Slava Semushin wrote:
>> +apt-cache search "^kernel-modules-.*-ovz-smp" \
>> + | sed 's/ - .*//' \
>> + | sed 's/^kernel-modules-//' \
>> + | sed 's/-ovz-smp$//' \
>> + | grep -v ^oss$ \
>> + | sort -u \
>> + > kernel-modules
>> +
SS> Можно чуть короче:
SS> apt-cache search '^kernel-modules-.*-ovz-smp' |
SS> sed 's|^kernel-modules-\([^ ]\+\)-ovz-smp - .*|\1|;/^oss$/d' |
SS> sort -u > kernel-modules
SS> :-)
Оптимальнее, но читается и редактируется хуже. Для скриптика который
отрабатывает быстр и запускается раз в несколько недель -- лучше
оптимизировать читабельность :)
--
С уважением, Денис
http://freesource.info
----------------------------------------------------------------------------
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2008-04-19 19:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-19 17:41 ` Slava Semushin
2008-04-19 19:20 ` Денис Смирнов [this message]
2008-04-21 14:36 ` Michael Shigorin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080419192038.GC21049@mw.office.seiros.ru \
--to=mithraen@altlinux.ru \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git