Read Command
Hi,
read command will consider as one word irrespective of spaces in the word for ex :- test case will be considered as one word incase if you assign this to one variable . But as per my requirement i want distribute the words like test and another word as case. How to do this can you any one help me out in doing this . Regards Bala |
I don't understand your question.
Which language are you asking about? If shellscript, then in bash the read command allows assigning words from a line to several variables; all the remaining part of the line goes in the last variable: Code:
c:~$ read var1 var2 var3 |
All times are GMT -5. The time now is 08:56 PM. |