home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / fj / question / unix / 504 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.5 KB

  1. Path: sparky!uunet!ccut!sh.wide!wnoc-snd-ss2!akiu!kuroki
  2. From: kuroki@math.tohoku.ac.jp (Gen Kuroki)
  3. Newsgroups: fj.questions.unix
  4. Subject: Re: foreach on csh / tcsh
  5. Message-ID: <KUROKI.92Nov7064954@matsu.math.tohoku.ac.jp>
  6. Date: 6 Nov 92 21:49:54 GMT
  7. References: <SSASAKI.92Nov6163114@fnews.ee.titech.ac.jp>
  8. Sender: news@akiu.gw.tohoku.ac.jp
  9. Distribution: fj
  10. Organization: Mathematical Institute, Tohoku University, Sendai JAPAN.
  11. Lines: 28
  12. Nntp-Posting-Host: matsu
  13. In-reply-to: ssasaki@ee.titech.ac.jp's message of 6 Nov 1992 16:31:38 JST
  14.  
  15. $@9uLZ!wElKLBg$G$9!#(J
  16.  
  17. In article <SSASAKI.92Nov6163114@fnews.ee.titech.ac.jp>
  18. ssasaki@ee.titech.ac.jp (Shigehiko Sasaki) writes:
  19.  |$@:4!9LZ(J%$@$G$+$$$N(J@$@%Q%o%(%l(J.$@El9)Bg(J $@$G$9!#(J
  20.  |
  21.  |$@!!(Jcsh$@$b$7$/$O(J tcsh$@$G$NOC$J$N$G$9$,!"BPOC%b!<%I$G(Jforeach$@%3%^%s%I$r;H$&(J
  22.  |$@$H$-IaDL$O(J
  23.  |
  24.  |($@%+%l%s%H%G%#%l%/(J$@%H%j$K(J filea fileb $@$N(J2$@$D%U%!%$%k$,$"$k$H$9$k$H(J)
  25.  |
  26.  |   % foreach file (*)
  27.  |   ? echo $file
  28.  |   ? end
  29.  |   filea
  30.  |   fileb
  31.  |   % _
  32.  |
  33.  |$@$H$J$j$^$9$,!"0l9T$G$^$H$a$FF~NO$9$k$3$H$O=PMh$J$$$b$N$G$7$g$&(J$@$+!)(J
  34.  |? $@$N8e$N(J echo $file$@$d(J end$@$,%R%9%H%j$KF~$i$J$$$N$,$$$d$J$N$G$9!#(J
  35.  |$@!!0l9TF~NO$G$J$/$F$b(J ? $@$N8e$N(J$@ItJ,$,%R%9%H%j$KEPO?$9$k$N$G$b!">/$7$$$d(J
  36.  |$@$G$9$,2fK}$G$-$^$9!#(J
  37.  
  38. csh $@$d(J tcsh $@$G$O$I$&$d$k$N$+CN$i$J$$(J$@$N$G$9$,!"(Jbash $@$d(J zsh $@$G$O(J
  39. $@4JC1$K$G$-$^$9!#(J(csh $@$8$c$J$/$F!"$4$a$s$J$5$$(J ^_^;)
  40. --
  41. $@9uLZ8<!wElKLBg3XM}3X(J$@It?t3X65<<(J
  42.  
  43.