Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing all parameters in a script insted of $1 $2

Status
Not open for further replies.

Larshg

Programmer
Mar 1, 2001
187
DK
Hi

I would like to be able to but all the parameters given to a script into one variable

ex.

script.ksh test1 test test3
#!/bin/ksh
t=$<all of the variables>

echo $t


Is there any way to do this?

/Larshg
 
t="$*"
t="$@"

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top