I need to list all files whose names start with \'SomeLongString\'. But the case of \'SomeLongString\' can vary. How?
I am using zsh, but a bash solution is also wel
Depending on how deep you want to have this listing, find offers quite a lot in this regard:
find
find . -iname 'SomeLongString*' -maxdepth 1
This will only give you the files in the current directory. Important here is the -iname parameter instead of -name.
-iname
-name