Help with Alias

Hi,

I have a software package consisting of a group of BASH shell scripts. There is a master script which calls a series of subscripts. To run the software users must open the master script, modify and save it, and then run it. To open the script you can either double-click on it, or you can type its full name at the prompt:

nedit ~/bin/software_name/master_script.sh

I would like to clean this process up a bit. Ideally I would like to set up an alias so that users can simply type the software name to open and/or run the script (ie don't have to type the full/messy name of the master script):

To open the script:

nedit software_name

To run the script:

software_name

I have set up the following alias in my .bashrc file:

alias software_name=~/bin/software_name/master_script.sh

This allows me to run the script by typing the software name, but NOT to open it. Does anyone have any suggestions?

Thanks a lot.

Mike

You could simply create a second alias, say:

alias ed_software_name="nedit ~/bin/software_name/master_script.sh"

Hi scottn,

Thank you very much for the reply. I have considered that, but ideally I would like users to be able to open the script with any text editor (nedit, Vi, etc.).

Perhaps I am blending the lines between an environmental variable and an alias. It almost seems like I want a combination of the two, except where I don't have to use the "$":

nedit $SEABATCH

$SEABATCH