starlite79
Technical User
Hi,
I have a script that runs successfully on an old HP-UX system as a shell script, though on Linux it seems it needs to be a kshell script.
In any case, I have several files that start as a few letters (like myname) and end with two digits 0-9 (so the possible file names can be myname00-99, inclusive).
The following syntax works on HP-UX but NOT on my Linux machine:
for FILE in myname[0-9][0-9]
do...
How do I use those brackets in a for loop? Do I need double brackets instead?
Thanks for your help!
I have a script that runs successfully on an old HP-UX system as a shell script, though on Linux it seems it needs to be a kshell script.
In any case, I have several files that start as a few letters (like myname) and end with two digits 0-9 (so the possible file names can be myname00-99, inclusive).
The following syntax works on HP-UX but NOT on my Linux machine:
for FILE in myname[0-9][0-9]
do...
How do I use those brackets in a for loop? Do I need double brackets instead?
Thanks for your help!