head takes the first lines from a file, and the -n parameter can be used to specify how many lines should be extracted:
line=$(head -n 1 filename)
head takes the first lines from a file, and the -n parameter can be used to specify how many lines should be extracted:
line=$(head -n 1 filename)