9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Steve Simon" <steve@quintile.net>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] strange behavior?
Date: Thu, 10 May 2007 09:18:23 +0100	[thread overview]
Message-ID: <eaa228acf925b7ef4371a2540284b426@quintile.net> (raw)
In-Reply-To: <ACCF003CBA3D09458207DB0CB86AD17D481B45@XMAIL.asuch.cas.cz>

> ##script:
>  T = 'Eptatretus burgeri'
>  echo  $T
>  awk '/'^$T^'/' all.uniq 
>  echo '++++++++++++++++'
>  T=`{awk 'NR== '23' ' SpeciesList}
>  echo  $T
>  awk '/'^$T^'/' all.uniq 
> ## result:
> Eptatretus burgeri
> Eptatretus burgeri (complete) Metazoa; Chordata; Craniata; Hyperotreti; Myxiniformes; Myxinidae; Eptatretinae; Eptatretus. NC_002807 cox1, -S(nga), D, cox2, K, atp8, atp6, cox3, G, nad3, R, nad4L, nad4, H, S(nct), L(nag), nad5, -nad6, -E, cob, T, -P, F, rrnS, V, rrnL, L(yaa), nad1, I, -Q, M, nad2, W, -A, -N, -C, -Y     
> ++++++++++++++++
> Eptatretus burgeri
> awk: can't open file /burgeri/
>  source line 1
> rc 117587: awk 117593: 2

I think this is a problem with rc treating $T as a list, and you need
a list flattening operator (double quote).

Perhaps what you need is 

awk '/'^$"T^'/' all.uniq 

[unsure as hasn't had any coffee yet]

-Steve


      parent reply	other threads:[~2007-05-10  8:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-10  6:45 cej
2007-05-10  8:16 ` Charles Forsyth
2007-05-10  8:18 ` Steve Simon [this message]

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=eaa228acf925b7ef4371a2540284b426@quintile.net \
    --to=steve@quintile.net \
    --cc=9fans@cse.psu.edu \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).