I run nano test.txt
Hello $NAME
then export NAME="World"
- Then I run - envsubst < text.txtit prints- Hello World
- Then I run - envsubst < text.txt > new.txtit saves- Hello Worldinto- new.txt
- Then I run - envsubst < text.txt > text.txtbut when open- text.txtbut it is an empty file
How can I replace the file with envsubst?
 
    