The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 12-10-2003
oombera's Avatar
oombera oombera is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2002
Location: Cleveland, OH
Posts: 804
If that list of names is stored in a variable, say nameList, you could use a simple loop:
Code:
for i in $nameList; do
 echo $i
done

If it's in a file, try:
Code:
while read LINE; do
 for i in $LINE; do
  echo $i
 done
done < yourFile

---------
or there's Ygor's simplified suggestion