Hi All
I have a file for ex .log file which contain several lines within it.
I have to read that file contents & assing that to a variable.
Hi All
I have a file for ex .log file which contain several lines within it.
I have to read that file contents & assing that to a variable.
This is a similar question to:
Regards
while read variable
do
echo $variable
done < your_file
---------- Post updated at 07:26 AM ---------- Previous update was at 07:24 AM ----------
for all contents in 1 variable...
variable=`cat your_file`