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