On Wed, Aug 21, 2024 at 09:44:34AM -0400, Cindy Sue Causey wrote: [...]
> All these years of using ls and locate myself, just had an ah-ha moment > triggered by the above. Tried my favored (cognitively friendly) grep: [...] Glad you enjoyed it :-) > PS Yeah, I know, some directories go very deep. I'm pretending those > don't exist just this second. Searches I've performed are much specific > than just "wi" so the results list would remain small for deeper > queries. Works for my humble single user needs. :) In bash, and when the shell option globstar is set, a double star matches arbitrary levels of subdirectories: "ls **/muh" lists the content of "foofoo/foofoo/foofoo/muh". But it takes a while, since my home directory is pretty full and it has, of course, to descend recursively all that stuff :) By default the option is unset, you set it with "shopt -s globstar". See the bash man page. Not very practical, IMO, but fun. Cheers -- tomás
signature.asc
Description: PGP signature