Maybe someone can give me the key to my problem.
Suppose I have two lines:
blablablabla blablablabla
(second line starts with a space)
I tried to check the first character on my line:
while read line do check=${line:0:1} done < file.txt
In both cases, check = 'b' ! This is annoying because I need this information for the rest of the treatment.
bash parsing
musecz
source share