| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Message-ID: | <02E689F991FFD311A75D009027B6A73E010AB6EC@mail01.nextcard.com> |
| From: | Gerald Le Roy <Gerald DOT LeRoy AT nextcard DOT com> |
| To: | "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com> |
| Subject: | Cyngus shell question |
| Date: | Mon, 18 Sep 2000 18:48:02 -0700 |
| MIME-Version: | 1.0 |
| X-Mailer: | Internet Mail Service (5.5.2650.21) |
This script isn't working for some reason and I don't understand why.
awk 'BEGIN {FIELDWIDTHS = "31 8 41"} $1 ~ "^5" {seqid[NR - 2] = $2} END {for
(i = NR - 4; i > 0; i-- ) print seqid[i] }' %1
When I run it - it doesn't return anything - and - it echo's a script that
is different than the one I'm trying to run
C:\scripts>awk 'BEGIN {FIELDWIDTHS = "31 8 41"} $1 ~ "^5"
{seqid[NR - 2] = $2} END {for (i = NR - 4; i ; i-- ) print seqid[i] }' 365
1_taptran_savings.txt 1>0
It may be that the shell is seeing the ">" symbol as a re-direct symbol
instead of as a 'greater than' symbol. I'm not sure how to get the shell
to recognize this as a greater than symbol. Can someone help - or re-direct
me (ha) to someone who can answer my question?
Thanks,
Gerald LeRoy
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |