From: Kostarev Alexey <kaf@nevod.ru> To: ALT Linux Community <community@lists.altlinux.org> Subject: Re: [Comm] awk и переменные shell Date: Tue, 19 Jun 2007 11:57:44 +0600 Message-ID: <46777058.7080706@nevod.ru> (raw) In-Reply-To: <200706191116.48560.hj@acoustics.ru> [-- Attachment #1: Type: text/plain, Size: 680 bytes --] Мерзляков Евгений Анатольевич wrote: >здравствуйте, >есть скрипт: > >#!/bin/bash >AAA="111" >TEST="/tmp" >echo | awk '{ system("echo $AAA") }' >echo | awk '{ system("echo $TEST") }' > >при этом на экран должно выводиться: >111 >/tmp > >а выводиться только: > >/tmp >т.е. переменная AAA не выводится, извечный вопрос, ЧТО ДЕЛАТЬ? > >как правильно вывести перменную среды используя функцию awk system > > Надо как минимум экспортировать переменную export AAA="111" >_______________________________________________ >Community mailing list >Community@lists.altlinux.org >https://lists.altlinux.org/mailman/listinfo/community > -- С Уважением Директор ООО НЕВОД Костарев А.Ф. [-- Attachment #2: kaf.vcf --] [-- Type: text/x-vcard, Size: 202 bytes --] begin:vcard fn:Alexey Kostarev n:Kostarev;Alexey org:Nevod Ltd. adr:;;;Perm;;;Russia email;internet:kaf@nevod.ru tel;work:(3422) 196-960 url:http://www.nevod.ru/nevod/staff/kaf/ version:2.1 end:vcard
next prev parent reply other threads:[~2007-06-19 5:57 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2007-06-19 5:16 Мерзляков Евгений Анатольевич 2007-06-19 5:57 ` Kostarev Alexey [this message] 2007-06-19 8:41 ` Мерзляков Евгений Анатольевич
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=46777058.7080706@nevod.ru \ --to=kaf@nevod.ru \ --cc=community@lists.altlinux.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
ALT Linux Community general discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 community community/ http://lore.altlinux.org/community \ mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com public-inbox-index community Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.community AGPL code for this site: git clone https://public-inbox.org/public-inbox.git