I have a .txt File where there is data in it like
Ram
Raj
Viraj
I want to pass only first value Ram
to a variable so that I can use its value further in the Linux command.
I have code which works but partially
head -1 demo.txt => gives me first value Ram
But How do I pass that value to a variable
Like this
$value head-1 demo.txt
$value = Ram
Not working ......