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?
source filein bash or csh is a command that reads commands fromfileinto the current shell (either script or interactive session). The more portable version of this is the dot command. file. This is supported on all common unix shells.