Hi ,
I am passing date parameter through file
my shell script testing.sh is
#set -x
#set -v
asd=$1
asd1=$2
echo $asd
echo $asd1
Passing parameter as below
sh testing.sh `cat file1.txt`
Output
cat file1.txt
'2014-08-18 17:18:07' '2014-08-18 16:10:01'
sh testing.sh `cat file1.txt`
"'2014-08-18
17:18:07'"
when i use
sh testing '2014-08-18 17:18:07' '2014-08-18 16:10:01'
2014-08-18 17:18:07
2014-08-18 16:10:01
This gives right output
How to pass the parameter by using output of file as input .