I run nano test.txt
Hello $NAME
then export NAME="World"
Then I run
envsubst < text.txt
it printsHello World
Then I run
envsubst < text.txt > new.txt
it savesHello World
intonew.txt
Then I run
envsubst < text.txt > text.txt
but when opentext.txt
but it is an empty file
How can I replace the file with envsubst?