9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Anthony Martin <ality@pbrane.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] open file in awk script?
Date: Mon,  8 Apr 2013 09:50:34 -0700	[thread overview]
Message-ID: <20130408165034.GA16183@dinah> (raw)
In-Reply-To: <7348512.x7WV1SlMj3@coil>

dexen deVries <dexen.devries@gmail.com> once said:
> trying to create a standalone awk script (#!/usr/local/plan9/bin/awk -f).
>
> how to open a file in BEGIN pattern section and set it as next input file?
>
> not helped so far: FILENAME="foo.txt"
> nor ARGV[1]="foo.txt"; nextfile;

ARGV[ARGC++] = "foo.txt"

  Anthony



      reply	other threads:[~2013-04-08 16:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-08 16:07 dexen deVries
2013-04-08 16:50 ` Anthony Martin [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=20130408165034.GA16183@dinah \
    --to=ality@pbrane.org \
    --cc=9fans@9fans.net \
    /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).