I have a file name .test with a echo statement. Now I want to run this file from .bashrc file. What I have done so far is:
My .test file contains:
echo "hello everyone"
My .bashrc file contains:
echo "hello world"
Now what I want is to run .test file from .bashrc file and here is what I did
In .bashrc file
echo "hello world" ENV=$(/home/narwen/.test) echo $ENV
Now when I try to run the .bashrc file from prompt like this
and errors like this
XAUTHORITY=/home/niraj/.Xauthority _=/usr/bin/env =
Can somebody help me please?