The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



Thread: help with Loop
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 02-04-2002
witt
Guest
 

Posts: n/a
Bifo,

you can try this :

for ksh and sh script do :

for file in `find /mypath -type f -name "*.mysuffix"`
do
cat $file
done

for csh script do :

foreach file(`find /mypath -type f -name "*.mysuffix"`)
cat $file
end


Witt