From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Injected-Via-Gmane: http://gmane.org/ To: community@lists.altlinux.org From: Artem Zolochevskiy Date: Tue, 08 Aug 2006 13:33:58 +0300 Message-ID: References: <44D86246.6080503@altlinux.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: ppp139-61.tis-dialog.ru User-Agent: KNode/0.10.2 Sender: news Subject: Re: [Comm] sed X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Linux Community List-Id: ALT Linux Community List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Aug 2006 10:34:59 -0000 Archived-At: List-Archive: List-Post: 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