wildcards in korn shell
Posted on 2000-04-02
i have a list of files that I want to operate on my script that uses
korn shell(ksh) like these:
I would like to use wildcards to select all those files that I want
p002* selects those that begins with p002
*800 selects those that ends with 800
p00[!2]* selects all except those that begins with p002
p0022500 selects p0022500
My question is, what if I want the opposite of the last example. I
would like to choose all except p0022500. I have tried many
combinations like issuing p00[!2]00 but it doesn't work.
Also, can I combined two conditions like: choosing all except
p0022500 and p0035800. Something like (!p0022500 && !p0035800).
I am using korn shell(ksh). Thank you.