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!

String Question

Status
Not open for further replies.

moreCA

Programmer
Feb 11, 2003
68
US
Is it possible to have two strings in a variable? As in

${f}_${year}${month}${day}.dly. My question is regarding the underscore and the . Can you have both in this and if so how? Right now when I have both, it negates the underscore and only uses the . Any help would be greatly appreciated.

Thank you...
 
it negates the underscore and only uses the .
????

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
when you say "it negates the underscore and only uses the .", what do you mean?

Post a snippet of the code, pls!

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
This is the code:

filename="${f}_${YEAR}${MONTH}${OLDDAY}.dly"

Is is going past the underscore and only using the .

Thank you.....
 
and when you do
echo "${filename}"

what does it say?

vlad
+----------------------------+
| #include<disclaimer.h> |
+----------------------------+
 
Is is going past the underscore and only using the .
????
Please, feel free to read either one FAQ in my sig.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
I have figured out my problem.....thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top