I want to store the second line of my file into a variable, so I am doing this:
sed -n '2p' myfile
I wish to store the output of the sed command into a variable named line.
What is the correct syntax to do this?
I want to store the second line of my file into a variable, so I am doing this:
sed -n '2p' myfile
I wish to store the output of the sed command into a variable named line.
What is the correct syntax to do this?