Newsgroups: fj.unix
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!aist-nara!odins-suita!narans!nide
From: nide@ics.nara-wu.ac.jp (NIDE Naoyuki)
Subject: csh argument substitution
Message-ID: <1996Aug6.074128.677@cc.nara-wu.ac.jp>
Sender: news@cc.nara-wu.ac.jp
Nntp-Posting-Host: turing.e.ics.nara-wu.ac.jp
Organization: Nara Women's University
X-Newsreader: mnews [version 1.19PL2] 1996-01/26(Fri)
Date: Tue, 6 Aug 1996 07:41:28 GMT
Lines: 20
Xref: galaxy.trc.rwcp.or.jp fj.unix:5911
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.unix&nb=5911&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

  sh$B$N(B"$@"$B$KAjEv$9$k!"(Bcsh$B$N5-K!$C$F$J$$$b$N$G$7$g$&$+!#(B

  $argv:q$B$,0l1~6a$=$&$J$s$G$9$,!"2<5-$N(Bcsh$B%9%/%j%W%H(B

#!/bin/csh
gawk 'BEGIN{for(i=1;i<ARGC;i++)print "|"ARGV[i]"|"}' $argv:q

$B$r:n$C$F!"!V(B"" a ""$B!W$H$$$&(B3$B$D$N0z?t$rM?$($F<B9T$7$F$_$k$H7k2L$O(B

|a|

$B$@$1$K$J$C$F$7$^$$$^$9!#$3$l$,(B

||
|a|
||

$B$K$J$C$FM_$7$$!"$D$^$j6u%o!<%I$b=|5n$7$J$$$b$N$,M_$7$$$N$G$9!#(B

nide@ics.nara-wu.ac.jp
