From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Michael Shigorin To: mandrake-russian@altlinux.ru Subject: Re: [mdk-re] add string to each (?) line in file Message-ID: <20011108090515.G1515@lic145.kiev.ua> Mail-Followup-To: mandrake-russian@altlinux.ru References: <20011105161325.69134407.vyt@vzljot.ru> <20011105160904.K1677@lic145.kiev.ua> <20011106105719.53ef5699.vyt@vzljot.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Hlh2aiwFLCZwGcpw" Content-Disposition: inline In-Reply-To: <20011106105719.53ef5699.vyt@vzljot.ru> User-Agent: Mutt/1.3.22.1i Sender: mandrake-russian-admin@altlinux.ru Errors-To: mandrake-russian-admin@altlinux.ru X-BeenThere: mandrake-russian@altlinux.ru X-Mailman-Version: 2.0 Precedence: bulk Reply-To: mandrake-russian@altlinux.ru List-Help: List-Post: List-Subscribe: , List-Id: Linux-Mandrake RE / ALT Linux discussion list List-Unsubscribe: , List-Archive: Date: Thu Nov 8 12:14:00 2001 X-Original-Date: Thu, 8 Nov 2001 09:05:15 +0200 Archived-At: List-Archive: List-Post: --Hlh2aiwFLCZwGcpw Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit On Tue, Nov 06, 2001 at 10:57:19AM +0300, Vyt wrote: > > > $cut filename -d " " -f1 > > Может, сразу его пропустить через sed 's, - .*$,\\,' > Можно и через perl, хотелось бы минимум стороннего. ~> rpm -qf `which sed` `which cut` sed-3.02-ipl10mdk textutils-2.0.11-ipl4mdk Всяко не стороннее перла :) Хотя на больших объемах перл быстрее должен быть, как я понимаю. -- ---- WBR, Michael Shigorin ------ http://visa.chem.univ.kiev.ua/~mike/ --Hlh2aiwFLCZwGcpw Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE76i6rbsPDprYMm3IRAmheAKCjIJsUykUtV3QVWCL5vX1tGeyzxwCcClgT VrPYqtFBseFct02MR3E3rI4= =eqwj -----END PGP SIGNATURE----- --Hlh2aiwFLCZwGcpw--