The UNIX and Linux Forums
>
Top Forums
>
UNIX for Dummies Questions & Answers
help with Loop
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Directory
Register
Forum Rules
FAQ
Contribute
Members List
Search
Today's Posts
Mark Forums Read
Thread
:
help with Loop
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
2
(
permalink
)
02-01-2002
LivinFree
Goober Extraordinaire
Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Try a for loop...
for each in 1 2 3
do
echo $each
done
for files in `ls`
do
echo $files
done
That will loop through each entry in the list, doing whatever you want with it...
LivinFree
View Public Profile
Find all posts by LivinFree