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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

concatenate string to variable 1

Status
Not open for further replies.

Scunningham99

Programmer
Sep 20, 2001
815
GB
Hi

I have the following script which does not work.


I wish to concatenate .lst on to variable.

Excuse me im a novice scripter obviously!

USER_PARAMS="`echo test`"
echo $USER_PARAMS
USER_PARAMS2="`echo $USER_PARAMS| .lst`"
echo $USER_PARAMS2

Sy UK
 
USER_PARAMS2="${USER_PARAMS}.lst"

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

Part and Inventory Search

Sponsor

Back
Top