I have file names in the form of "ARG_time.xls", "AUS_time.xls" and so on. I like to create time stamped file name as "ARG_2012.xls", "AUS_2012.xls" and so on. I apply:
Table[
{"ARG_time.xls", "AUS_time.xls", "AUT_time.xls", "BEL_time.xls",
"BGR_time.xls"}, {time, 2010, 2011, 2012, 2013, 2014, 2015}
]
This does not work of course. Is there an easy way to create this table to have file names as
{"ARG_2010.xls", "AUS_2010.xls", "AUT_2010.xls", "BEL_2010.xls", "BGR_2010.xls"},
(...)
{"ARG_2015.xls", "AUS_2015.xls", "AUT_2015.xls", "BEL_2015.xls", "BGR_2015.xls"}
Thanks
StringTemplate– b3m2a1 Aug 19 '20 at 13:28Table[{"ARG_" <> ToString[time] <> ".xls", "AUS_" <> ToString[time] <> ".xls", "AUT_" <> ToString[time] <> ".xls", "BEL_" <> ToString[time] <> ".xls", "BGR_" <> ToString[time] <> ".xls"}, {time, {2010, 2011, 2012, 2013, 2014, 2015}}]– corey979 Aug 19 '20 at 13:29