I am new to shell scripting world.
I wrote a bash shell script.
Name of the script is new.sh
Select T1.date as dateFact,
T2.idmfg as idMfg,
T1.id as userId,
FROM Table1 T1
JOIN
Table2 T2
ON
T1.id=T2.id
WHERE
T1.date ='${Date}'
T2.idmfg='${idMfg}';
While running new.sh, I want to enter Date
and idMfg
manually. E.g.
sh new.sh -d 2013-03-20 -i 201
Where, Date
is 2013-03-20
and idMfg
is 201
.
How can I do it?
Thank you in advance.