From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Fri, 15 Dec 2006 21:11:56 +0200 From: Michael Shigorin To: =?koi8-r?B?y9XM2NTV0s7ZyiDPxtTP0MnL?= Message-ID: <20061215191156.GK13823@osdn.org.ua> Mail-Followup-To: =?koi8-r?B?y9XM2NTV0s7ZyiDPxtTP0MnL?= References: <4582A8A2.40008@altlinux.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4582A8A2.40008@altlinux.ru> User-Agent: Mutt/1.4.2.1i Subject: Re: [room] need help about regexp X-BeenThere: smoke-room@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: shigorin@gmail.com, =?koi8-r?b?y9XM2NTV0s7ZyiDPxtTP0MnL?= List-Id: =?koi8-r?b?y9XM2NTV0s7ZyiDPxtTP0MnL?= List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Dec 2006 19:12:25 -0000 Archived-At: List-Archive: On Fri, Dec 15, 2006 at 04:52:34PM +0300, Anton Gorlov wrote: > Файл написан на чём-то > !/usr/bin/expect -- Здрасьте, на expect(1) и написан скрипт. > {^(.{1,14}).*([#>])$} > Строка типа Cat_Root# через него проходит.. $ echo -n Cat_Root | wc -c 8 > а вот строка вида > c7301-PPPoE-AC> уже нет. echo -n c7301-PPPoE-AC | wc -c 14 Гм. А c7301-PPPoE-AC# ? -- ---- WBR, Michael Shigorin ------ Linux.Kiev http://www.linux.kiev.ua/