Quantcast
Channel: How to enter foo-* folder without actually using wildcard or shell expansions? - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 4

Answer by kenorb for How to enter foo-* folder without actually using wildcard or shell expansions?

$
0
0

You may also try using locate utility, e.g.:

updatedb -o ~/tmp.db -l0 -U $PWD; cd $(locate -d ~/tmp.db -l 1 -b -r foo-)

For more complex regex pattern check info locate.


Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>