all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Easy for Some
Date: Mon, 04 Jan 2010 19:23:48 -0700	[thread overview]
Message-ID: <hhu7rm$7cp$1@ger.gmane.org> (raw)
In-Reply-To: <AFFE0D82-32F6-4EEA-A0A3-1C8BAB1D57EA@Web.DE>

Peter Dyballa wrote:
> 
> Am 04.01.2010 um 11:25 schrieb marioepsley:
> 
>> I am a complete newbie, i downloaded aquamacs emacs yesterday, tried 
>> to use
>> replace string as a guess
> 
> 
> You could use awk to print only the second column, i.e., the second by 
> white space separated word of each line, when it exists in this record. 
> Then it would also output the second word of the header lines which 
> you'd need to filter:
> 
>     awk '{if (NF > 1) print $2}' <file name> | egrep -v '[^-0-9.]'

You (almost) never need to pipe awk's output through (e)grep:

awk 'NF == 2 && $2 ~ /^[0-9]+\.[0-9]+$/ {print $2}' FILE

-- 
Kevin Rodgers
Denver, Colorado, USA





  reply	other threads:[~2010-01-05  2:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20100104155525.0A1DC83814@mxperim8.sea5.speakeasy.net>
2010-01-04 10:25 ` Easy for Some marioepsley
2010-01-04 16:28   ` Vicente Hernando Ara
2010-01-04 17:45   ` Peter Dyballa
2010-01-05  2:23     ` Kevin Rodgers [this message]
2010-01-04 20:40   ` Andreas Politz
2010-01-05  2:44   ` Steve Revilak
2010-01-05 15:40   ` Memnon Anon
2010-01-05 17:33     ` Memnon Anon
     [not found] <mailman.707.1262616303.18930.help-gnu-emacs@gnu.org>
2010-01-05 10:01 ` Anselm Helbig
2010-01-05 21:54 ` Colin S. Miller

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='hhu7rm$7cp$1@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.