I am very rusty on my programming. I am new to freebsd FreeBSD. I am making a script. In shell I can use the which command to find the location of an install directory. I know in shell if I do a which mail it will return
In my script I would like to set it to a variable to the result of the which command. An example would be
I can't seem to find anything on the web about using the which command in a script, any help would be great.
Thanks,
Brian
Code:
/usr/bin/mail
In my script I would like to set it to a variable to the result of the which command. An example would be
Code:
MAIL="$which mail"
I can't seem to find anything on the web about using the which command in a script, any help would be great.
Thanks,
Brian