LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2004, 07:11 AM   #1
suchi_s
Member
 
Registered: May 2004
Posts: 133

Rep: Reputation: 15
deaclare variable automatically with while read


while read ( wants as many variables wanted, without declaring each of them)
do
echo "hi"
done
 
Old 09-13-2004, 08:25 AM   #2
leckie
Member
 
Registered: Dec 2003
Location: Australia
Distribution: Mandrake 9.2
Posts: 151

Rep: Reputation: 30
you will have to use an array or a vector
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically OS becoming Read only mode jekd Linux - Software 3 07-21-2005 11:32 AM
read client-side variable out of webpage jeffreybluml Linux - Newbie 2 05-23-2005 12:02 PM
How to read a variable from a file? Andrew Benton Programming 2 12-29-2004 10:50 PM
Fedora Core 1, won't read in file to variable linlu Linux - General 4 07-01-2004 06:47 PM
named daemon variable ${ROOTDIR} in init.d does not allow zones to be read r00tnuke Red Hat 0 01-24-2004 05:08 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration