home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / fj / question / unix / 519 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.6 KB  |  48 lines

  1. Newsgroups: fj.questions.unix
  2. Path: sparky!uunet!ccut!wnoc-tyo-news!cs.titech!is.titech!isea.is.titech!takesi
  3. From: takesi@isea.is.titech.ac.jp (9019047 SASAKI Takeshi)
  4. Subject: Re: foreach on csh / tcsh
  5. References: <SSASAKI.92Nov6163114@fnews.ee.titech.ac.jp>
  6. Message-ID: <TAKESI.92Nov10214439@ksd.is.titech.ac.jp>
  7. Organization: Department of Information Science, Tokyo Institute of 
  8.     Technology, Tokyo, Japan.
  9. In-Reply-To: ssasaki@ee.titech.ac.jp's message of Fri, 6 Nov 1992 07:31:38 GMT
  10. Sender: news@is.titech.ac.jp (Usenet News System)
  11. Date: Tue, 10 Nov 1992 12:44:39 GMT
  12. Distribution: fj
  13. X-Bytes: 1043
  14. Lines: 33
  15.  
  16. In article <SSASAKI.92Nov6163114@fnews.ee.titech.ac.jp> ssasaki@ee.titech.ac.jp (Shigehiko Sasaki) writes:
  17.  
  18.  
  19. In article <SSASAKI.92Nov6163114@fnews.ee.titech.ac.jp> ssasaki@ee.titech.ac.jp (Shigehiko Sasaki) writes:
  20.  >$@:4!9LZ(J%$@$G(J$@$+$$$N(J@$@%Q%o%(%l(J.$@El9)Bg(J $@$G$9!#(J
  21. $@$I$&$b!":4!9LZ(J@$@%8%c%$%"%s$G$O$J$$(J $@$G$9!#(J
  22.  
  23.  >$@!!(Jcsh$@$b$7$/$O(J tcsh$@$G$NOC$J$N(J$@$G$9$,!"BPOC%b!<%I$G(Jforeach$@%3%^%s%I$r;H$&(J
  24.  >$@$H$-IaDL$O(J
  25.  >
  26.  >($@%+%l%s%H%G%#%l%/%H%j$K(J filea fileb $@$N(J2$@$D(J$@%U%!%$%k$,$"$k$H$9$k$H(J)
  27.  >
  28.  >   % foreach file (*)
  29.  >   ? echo $file
  30.  >   ? end
  31.  >   filea
  32.  >   fileb
  33.  >   % _
  34.  >
  35.  >$@$H$J$j$^$9$,!"0l9T$G$^$H$a$FF~NO$9$k$3$H$O=PMh$J$$$b$N$G$7$g$&$+!)(J
  36.  >? $@$N8e$N(J echo $file$@$d(J end$@$,%R%9%H%j$KF~$i$J$$$N$,$$$d$J$N$G$9!#(J
  37.  
  38. % apply 'echo %1' *
  39.  
  40. $@$H$$$&<j$b$"$j$^$9!#>\$7$/$O(J man 1 apply $@$r;2>H$7$F2<$5$$!#(J
  41. while $@$K$D$$$F$O$o$+$j$^$;$s$,!#(J
  42. --
  43.  
  44.             $@:4!9LZ5#;K!wEl9)Bg(J $@>pJs2J3X2J(J $@#3G/(J
  45.             takesi@isea.is.titech.ac.jp
  46.  
  47.  
  48.