From: Artem Zolochevskiy <az@zolochevskie.net>
To: community@lists.altlinux.org
Subject: Re: [Comm] sed
Date: Tue, 08 Aug 2006 13:33:58 +0300
Message-ID: <eb9pc3$cii$1@sea.gmane.org> (raw)
In-Reply-To: <44D86246.6080503@altlinux.ru>
Anton Gorlov wrote:
> Есть несколько строк на баше:
>
> ver=1.2.3
> newver=`echo ${ver} | sed 's/\.//g'`
> sed "s/RADIUS_VERSION\t105/RADIUS_VERSION\t${newver}/g" -i conf.h
>
> Вопрос - как бы обойтись здесь без дополнительной переменной $newver?
>
>
а что вот такое не прокатит?
sed "s/RADIUS_VERSION\t105/RADIUS_VERSION\t`echo ${ver} | sed 's/\.//g'`/g"
--
Artem Zolochevskiy
next prev parent reply other threads:[~2006-08-08 10:33 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-08-08 10:07 Anton Gorlov
2006-08-08 10:33 ` Artem Zolochevskiy [this message]
2006-08-08 10:36 ` Anton Gorlov
2006-08-15 10:24 ` Fr. Br. George
2006-08-08 10:35 ` LVU
2006-08-08 11:59 ` Yura Kalinichenko
2006-08-08 13:10 ` Anton Gorlov
2006-08-08 19:44 ` Michael Shigorin
2006-08-08 19:50 ` Andrey Rahmatullin
2006-08-21 16:17 ` Peter Volkov
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='eb9pc3$cii$1@sea.gmane.org' \
--to=az@zolochevskie.net \
--cc=community@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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git