Hi,
I have a shell script, test.ksh which should read the input from another file, say 1.txt
test.ksh:
#!/usr/bin/ksh
datasource=$1
echo "Data is: $datasource
1.txt:
12345
When I run the command:
$test.ksh < 1.txt
It does not read the varibale properly from the file.
The scrip works fine when I type:
$test.ksh 12345
Thanks for help.
I have a shell script, test.ksh which should read the input from another file, say 1.txt
test.ksh:
#!/usr/bin/ksh
datasource=$1
echo "Data is: $datasource
1.txt:
12345
When I run the command:
$test.ksh < 1.txt
It does not read the varibale properly from the file.
The scrip works fine when I type:
$test.ksh 12345
Thanks for help.
Comment