I would like to do what is mentioned in How to match case insensitive patterns with ls?
except for ksh. Is it possible to do it without any pain(regex)?
There are 3 main implementations of
ksh), with two main branches:
ksh93, many version with new features added for each).
pdksh, the public domain version (a free reimplementation of
ksh88with which it is mostly compatible) which is the base upon which is built the
shon some BSDs like MirOS or OpenBSD (hence
zshimplementation. When called as
zshemulates the behavior of
ksh88with many of the features of
ksh93as well (and a few differences as well).
print -r -- *.~(i:txt)
print -r -- ~(i)*.txt
pdksh and its derivatives such as
print -r -- *.[tT][xX][tT]
With zsh's implementation of
setopt nocaseglob print -r -- *.txt
setopt extended_glob print -r -- (#i)*.txt
With out regex, no!
But parsing 'ls' output with grep shouldn't be as much pain (if at all).
ls | grep -i '*xxx*'