On Tue, Oct 16, 2012 at 4:44 AM, Ashutosh Kumar Mishra
<[email protected]> wrote:
> Help :- for creating this bash script
>
> Q;-
> ==========================================================
> Create a script in bash /root/script.sh such that, If the script is run in
>
>    the following manner
>
>    #/root/script.sh python
>
>       o/p ----> perl


I believe this is one problem that you can try solving yourself. $1
has the first argument passed to your script. You can do things like:

if [ "$1" == "" ]; then
  # some stuff here..
fi

SB

-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

Reply via email to