In ksh shell,
There is a function f1.
function f1
{
How to read here??
....
....
}
I am passing values to fuunction f1 as
f1 "A" "B"
Please tell me how to read the passed values in function f1.
Advance Thanks & Regards
Prashant
In ksh shell,
There is a function f1.
function f1
{
How to read here??
....
....
}
I am passing values to fuunction f1 as
f1 "A" "B"
Please tell me how to read the passed values in function f1.
Advance Thanks & Regards
Prashant
There are probably hundred sof tutorials on the Korn shell available on the Web.
Just use your favorite search engine to find "ksh tutorial function"
#!/usr/bin/ksh
function foo
{
echo "Argument 1: $1"
echo "Argument 2: $2"
echo "All agruments: $*"
}
bar()
{
echo "Argument 1: $1"
echo "Argument 2: $2"
echo "All agruments: $*"
}
foo one two
bar three four
Thanks fpmurphy.