From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Revilak Newsgroups: gmane.emacs.help Subject: Re: Easy for Some Date: Mon, 4 Jan 2010 21:44:43 -0500 Message-ID: <20100105024443.GA383@srevilak.net> References: <20100104155525.0A1DC83814@mxperim8.sea5.speakeasy.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWyiEgJYm5f9v55/" X-Trace: ger.gmane.org 1262665076 21704 80.91.229.12 (5 Jan 2010 04:17:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2010 04:17:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 05 05:17:49 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from terminus-est.gnu.org ([66.92.78.210] helo=lists.gnu.org) by lo.gmane.org with esmtp (Exim 4.50) id 1NS0ra-0001Ri-HN for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jan 2010 05:17:46 +0100 Original-Received: from localhost ([127.0.0.1]:48611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NS0eJ-0001ot-9j for geh-help-gnu-emacs@m.gmane.org; Mon, 04 Jan 2010 23:04:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NS0cx-0001N0-VT for help-gnu-emacs@gnu.org; Mon, 04 Jan 2010 23:02:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NS0cs-0001Ju-GW for help-gnu-emacs@gnu.org; Mon, 04 Jan 2010 23:02:38 -0500 Original-Received: from [199.232.76.173] (port=52769 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NS0Kd-0006wH-31 for help-gnu-emacs@gnu.org; Mon, 04 Jan 2010 22:43:43 -0500 Original-Received: from mail6.sea5.speakeasy.net ([69.17.117.8]:60663) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NRzPm-0006j0-4Q for help-gnu-emacs@gnu.org; Mon, 04 Jan 2010 21:44:58 -0500 Original-Received: (qmail 6325 invoked from network); 5 Jan 2010 02:44:51 -0000 Original-Received: from pool-96-233-67-162.bstnma.fios.verizon.net (HELO srevilak.net) (srevilak@[96.233.67.162]) (envelope-sender ) by mail6.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 5 Jan 2010 02:44:51 -0000 Content-Disposition: inline In-Reply-To: <27011067.post@talk.nabble.com> User-Agent: Mutt/1.5.19 (2009-01-05) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71051 Archived-At: --pWyiEgJYm5f9v55/ Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline >From: marioepsley >I have a file like this, could have up to a 1000 keyframes.: > >Effects Sound Keys #1 Output 1 #22 > Frame > 0 0.17489 > 1 0.261281 > 2 0.361762 > 3 0.400085 > 4 0.411538 > 5 0.434799 > 6 0.41712 > 7 0.422151 > 8 0.43181 > 9 0.411811 > >Just to clarify the spacings: ( 0 0.17489 ) >Just to clarify the spacings: (tab0tab 0.17489 tab) > >and i want to be left with just the raw values like this: > > >0.17489 >0.261281 >0.361762 >0.400085 >0.411538 >0.434799 >0.41712 >0.422151 >0.43181 >0.411811 This isn't really an emacs answer, but cut -f3 foo.txt should do what you want (assuming that your data is in a file called "foo.txt"). >I am a complete newbie, i downloaded aquamacs emacs yesterday Since you mentioned aquamacs, I'm going to guess that you're using a Mac. If so, you'll need to run `cut' from within Terminal.app. Of, if you want to do it within emacs, open the file with emacs and try C-x h ESC 1 ESC | cut -f3 RET Broken down, this is C-x h ;; selects entire buffer ESC 1 ESC | ;; ESC | pipes region to a command. ESC 1 is ;; a prefix argument that means "replace the region ;; with the output of the command" cut -f3 RET ;; This is the command you're running on the region Steve --pWyiEgJYm5f9v55/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (Darwin) iEYEARECAAYFAktCp5oACgkQX7YJI4BuyDT8/ACbBumMfiDb8cOyaUGQu3XKpGPa 0SoAoLqZ6eKb7koeU5eupFkDu47sNRNJ =rs1Q -----END PGP SIGNATURE----- --pWyiEgJYm5f9v55/--