Reputation: 75
I am trying to read path from input but it gives error that there is no such a directory or file. input is ./test.sh./path ...
#!/bin/bash
var=$0
var1=$1
echo $var
echo $var1
Upvotes: 1
Views: 499
Reputation: 7521
You are missing a whitespace between filename and argument.
./test.sh ./path
Upvotes: 2