I am creating a simple shell scripts with the use of tilde or `
It seems that something wrong with my commands or configurations.
Please help me on this. I am figuring this out for at least a week now.
I still can't understand why this script produces an error.
Please see below.
filename: sample.sh and it contains the following lines
a= `cat mydate.txt`
When I run the sample.sh at the command line, it produces an error :
sample.sh: 20040714: not found.
mydate.txt contains only 20040714.
I was trying to transfer the value of the text file to a variable and I want it to display at the screen. It seems that tilde was not recognize.... but other scripts uses tilde and it works fine. Can you give me an idea why this simple unix script does not work using tilde...