What is Nostr?
nixCraft šŸ§ /
npub1n4nā€¦6ax6
2024-07-17 11:24:30

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/

Author Public Key
npub1n4n59l6ryd0t26xqh32l4zk00cqyegr20j0qc0dzkzy6px9hdxusru6ax6