command line substring completion

Xfce file dialogs let you type in substrings to filter files.
E.g. if you have anaconda-webui.log and anaconda.log, type ui.

Can you do that with a shell?

cat ui and hit a magic key?
 
most shells have the concept of "file completion". In tcsh/csh you add "set filec" to the init file then the TAB key is used to do the completion.
 
On ZFS (and if I recall correctly, {t}csh and some others excluding /bin/sh), incremental completions would work.

For example, if the 2 files you mentioned is in current working directory and there are no other files starting from "an", type "an" then hit Tab key would complete it to "anaconda". Then, if you additionally type "-" and hit Tab key, completed to anaconda-webui.log.
If you type "." instead of "-", completed to anaconda.log.

Is it sufficient for you?
 
Back
Top