3
You can do it like this:
variavel="$(< Affonso\,\ I.\ P..txt)"
echo "$variavel"
3
1
You can do it like this:
variavel="$(< Affonso\,\ I.\ P..txt)"
echo "$variavel"
Browser other questions tagged linux terminal shell-script
You are not signed in. Login or sign up in order to post.
i tried with this code snippet of yours but unfortunately kept the error msg: . /show_var_arq.sh: line 3: Affonso, I. P.. txt: File or directory not found
– AGPC
I managed to make it work partially, now gave a problem that it lost the line breaks from the original text.
– AGPC
variable=
cat < Affonso\,\ I.\ P..txt
echo $variavel– AGPC
@AGPC Updated the answer, see if it now works.
– stderr