nixCraft š§ on Nostr: Want to search files effortlessly without worrying about case sensitivity and ...
Want to search files effortlessly without worrying about case sensitivity and wildcards? š This custom function can turn your ls command into case-insensitive mode on #Linux, #Unix, #macOS, or #FreeBSD with bash or zsh! āØ
```
casels(){
shopt -s nocaseglob
ls -l -- $*
shopt -u nocaseglob
}
casels '*foo*'
```
For zsh and other examples see https://www.cyberciti.biz/faq/ls-command-case-insensitive-mode-search-pattern-linux-unix/
```
casels(){
shopt -s nocaseglob
ls -l -- $*
shopt -u nocaseglob
}
casels '*foo*'
```
For zsh and other examples see https://www.cyberciti.biz/faq/ls-command-case-insensitive-mode-search-pattern-linux-unix/
