passing parameters in shell scripts
Doug McKenzie
mck at hpcuhc.cup.hp.com
Wed May 15 10:27:42 AEST 1991
> I have variables on a script whose values I'd like to pass on to
> be used on another script. Can anyone suggest the best method to
> pass parameters in a shell script?
Hope this helps.
Doug McKenzie
HP HP-UX Support
mck at cup.hp.com
#422: cat blah
#!/bin/ksh
echo blah dollar star is $*
echo calling blah2
blah2 $*
echo returned from blah2
#423: cat blah2
#!/bin/ksh
echo in blah2
echo blah2 dollar star is $*
echo about to leave blah2
#424: blah 1 2 3
blah dollar star is 1 2 3
calling blah2
in blah2
blah2 dollar star is 1 2 3
about to leave blah2
returned from blah2
More information about the Comp.unix.questions
mailing list