Reputation: 58
I think I have a really simple question but i can't figure out the answer.
I have this code
[[ "${file_name}" = ${regex} ]] && continue
POSIX version does not support this [[ ]] pattern... Basically what this line does is. If name of the file matches the Extended regular expression, it skips my loop. Is there a way in POSIX norm to do this same thing on one line? or is there any other way to have a word and compare it with E regular expression?
Thank you for your answers.
Upvotes: 0
Views: 959