Answers for "shell script read first char of each line"

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
0

bash get first n characters

echo ${FOO:0:10}
Posted by: Guest on April-18-2021

Code answers related to "shell script read first char of each line"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language