i have a script file which is
**************************************************
case $arg in
-start)
**./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@**
if test $? -ne 0 ; then
exit 1
fi
;;
-version)
./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config -i -v $@
if test $? -ne 0 ; then
exit 1
fi
;;
-configtest)
./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config -i -c $@
if test $? -ne 0 ; then
echo 'failure: configuration test failed'
exit 1
fi
echo 'success: configuration was parsed successfully'
;;
-shell)
/bin/sh
;;
*)
echo "Usage: start [-start|-shell|-version|-configtest]"
exit 1
;;
**********************************************
i am looking to replace
"./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@"
with
"newtask -p $Project_Name ./$PRODUCT_BIN -d $PRODUCT_SUBDIR/config $@"
i tired to use sed but it isnot allowing to accept vairable as contant data.
can youplease help me here i am out of my brain by tying all kind of things…
Thanks in advance.
You want this line:
to look like this:
Right? Then:
Just use single quote(
') to wrap the command and pipe (|) as seperator: