Store output from sed into a variable
Very simple question

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` into a variable named line `$line`

What is the correct syntax to do this.  Thank you
Store output from sed into a variable
===

Very simple question

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` into a variable named line `$line`

What is the correct syntax to do this.  Thank you