Hi guys I'm new to Linux and was having some issues. I am trying to read the second last line of a file which is
# #
I am required to use the head and tail commands to do this task, so my code is :
Line1="$(tail -n2 test_file | head -n1)"
however, the output of this is
# #
I am not sure how I can get the variable to keep the blank spaces