reading a list from a file

The Grand Master asg at sage.cc.purdue.edu
Thu Mar 7 05:42:27 AEST 1991


In article <1991Mar6.175759.18653 at cunixf.cc.columbia.edu> ta-dw30 at cunixa.cc.columbia.edu writes:
%Is there any way to read a list from a file? For instance, could I say
%
%for x in <friends>; do finger $x; done
%
%		Thanx.
%
%=============================================================================
%David C Worenklein          | No one could tell me where my soul might be;
 Try:
for x in `cat filewithlistoffriends` # note these are `s not 's
do
finger $x
done
---------
sar.casm \'sa:r-.kaz-*m\ \sa:r-'kas-tik\ \-ti-k(*-)le-\ n [F sarcasme, fr. 
   LL sarcasmos, fr. Gk sarkasmos, fr. sarkazein to tear flesh, bite the lips 
   in rage, sneer, fr. sark-, sarx flesh; akin to Av thwar*s to cut] 1: a 
   cutting, hostile, or contemptuous remark : GIBE 2: the use of caustic or 
   ironic language - sar.cas.tic aj

                                   ###             ##
Courtesy of Bruce Varney           ###               #
aka -> The Grand Master                               #
asg at sage.cc.purdue.edu             ###    #####       #
PUCC                               ###                #
;-)                                 #                #
;'>                                #               ##



More information about the Comp.unix.questions mailing list