1

I'm writing a script to read a simple text file.

But I get only a "No such file" message.

The file exist and has proper access rigths

the code I'm using is:

Ficheiro="mensagem"
while read linha; do
    echo $linha
done < Ficheiro
1
  • 1
    you may get the same error message even after including the $ sign, if your file isnt in the same directory. You might try specifying the absolute path.
    – j0h
    May 6, 2013 at 16:16

1 Answer 1

3

You are missing a $

done < $Ficheiro
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .