The UNIX and Linux Forums
>
Top Forums
>
Shell Programming and Scripting
help needed urgently
.
User Name
Remember Me?
Password
google unix.com
Forums
Register
Forum Rules
Links
Albums
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
Thread
:
help needed urgently
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
#
3
(
permalink
)
02-07-2008
Smiling Dragon
Disorganised User
Join Date: Nov 2007
Location: New Zealand
Posts: 922
Quote:
Originally Posted by
nabmufti
while read line $var
I don't think read works this way.
Try:
Code:
cat $var | while read line
It appears from your error that you are inadvertantly executing the lines of the file rather than just reading them. Post your full script (use CODE and /CODE tags carefully to make it easier to read) and we'll take a look.
Smiling Dragon
View Public Profile
Find all posts by Smiling Dragon
Find Smiling Dragon's past nominations received
Find Smiling Dragon's present nominations given