The UNIX and Linux Forums
>
Special Forums
>
UNIX Desktop for Dummies Questions & Answers
trying to create a script to read a flie and loop a command...
User Name
Remember Me?
Password
Google UNIX.COM
Forums
Portal
Register
Rules & FAQ
Contribute
Members List
Arcade
Search
Today's Posts
Mark Forums Read
Thread
:
trying to create a script to read a flie and loop a command...
View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
#
5
(
permalink
)
03-25-2008
shamrock
Registered User
Join Date: Oct 2007
Location: USA
Posts: 482
Code:
for word in $(<file) do echo your_cmd_goes_here $word done
...remove the echo and put your command in place of "your_cmd_goes_here"
shamrock
View Public Profile
Find all posts by shamrock