I have written a shell script that will take a parameter, pass that parameter to Java command. But I get error during the execution.
Here is the script:
#The script takes an input, the file name to be styled and executes the java program based on it
echo "Hello World"
echo "The parameter passed is $1"
cd ~/CStyler/java/
`javac Main.java`
`java Main $1`
The error I get:
Hello World
The parameter passed is hello
CStyler.sh: 7: CStyler.sh: The: not found