starlite79
Technical User
Hi,
I am writing a kshell script to wget a bunch of files that have a nameYYMMDDname.data format. I attempted to define a string for the YYMMDD part as follows using strftime
Next I defined the filename as such:
But the script fails at the strftime part (unexpected '( 'error). Do I need to include C library(ies) somehow? Is there another way to define this? I may just have to say wget *.data, but I was hoping for a more elegant approach.
I am writing a kshell script to wget a bunch of files that have a nameYYMMDDname.data format. I attempted to define a string for the YYMMDD part as follows using strftime
Code:
# Define a string for the YYMMDD part of the filename.
s=strftime('%y%m%d')
Code:
file="name"$s"data.data"