Hi Experts,
I'm new to Shell Scripting world and need a little help from you "Scripting Gurus".
I want to convert a string (entered by a user) to array in csh. I want something like this:
echo "Enter the Numbers: "
set num = $<
Suppose, user enters:
1 2 3 4 5 6 7
This value is stored in variable num as string "1 2 3 4 5 6 7".
I want this string to be converted into a array with seven values.
like num[1] = 1, num[2] = 2, ....
This may be damn easy for you people.
Any help in this regard is highly appreciated.
Thanks in advance!
Regards,
Sumit Garg
PS: I've implemented the whole idea using loops, but I was particularly looking for some easier approach.