see i want to use source command in my shell script. Now when i type source on terminal it shows like
-bash: source: filename argument required
source: usage: source filename [arguments]
now when i use this in my shell script like this
#!/bin/sh
source
and save as test.sh
and run then get like this
./test.sh: 2: source: not found
How to solve this problem?
You run your script with
sh, not withbash.sourcedoes not exist in plainsh, but you can use.instead, it means the same thing.