Answers for "shell command read first lines"

0

shell command read first lines

# credit to the Stack Overflow user in the source link
# the line is stored in a variable, remove 'line=' to print on display

line=$(head -n 1 filename)
Posted by: Guest on July-26-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language