I have a requirement where I need to store n lines of a UNIX file to n variables. The number of files may vary so I need to use the loop.
eg: A file abc.txt
table1
table2
table3
Now I need to store them in a variable say Var1,Var2
and Var3
(here number of lines are not fixed and can change).
Can someone please help me ?