kornShellScripter
Programmer
I'm testing for the existence of files that begin with, say, "gene" and have 8 characters in the filename.
So gene????
This will not work:
because [[/]] does not allow wildcard expansion.
So I'm currently using
But it would be nice to keep this test inside the korn shell instead of having to use an external command ([/] in this case)
Is this possible?
So gene????
This will not work:
Code:
if [[ -f gene???? ]]
because [[/]] does not allow wildcard expansion.
So I'm currently using
Code:
if [ -f gene???? ]
But it would be nice to keep this test inside the korn shell instead of having to use an external command ([/] in this case)
Is this possible?