set a line in a file as a variable
I have a file on a remote machine that has a list of the first three file names of a directory. How do I set line 1, line 2, and line 3 as a variable, so I can copy them. Here is my code so far........
ssh email@example.com <<END_SSH
ls -tr | tail -3 | tee /tmp/bigross.log
(missing step to assign variable to lines)
scp firstname.lastname@example.org:/data/noaa/bigross/$bigross1 /data/products/hrpt/bigross/