You have $yr=2008
You want to obtain something like 2008_data.csv etc
$yr_data.csv does not work
The solution - Use curly braces to separate variables from strings
like this
${yr}_data.csv
This blog has content related to Linux, Apache, MySQL, PHP, Perl, CSS, JavaScript and Free software/open source.
2 comments:
Thanks for your input. I'll certainly think over it.
Thank you for another excellent post. Keep rocking.
Post a Comment