• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

'ls' command and globbing

Currently running 8.1.0. I want to use globbing with the 'ls' command but keep running into a stone wall. Does globbing not work in Android when using 'ls'?
 
there is an app:
https://play.google.com/store/apps/details?id=com.globbing.mobile

Just Kidding

i have no idea to be honest what globbing is, but i did find this link:
https://forum.nginx.org/read.php?29,251901
Many thanks. It will take a bit to wade through that but it looks promising.

Globbing is a tool when running commands that allows a form of filtering the command's output. 'ls' in Ubuntu allows you to use a switch (-I) which when invoked, allows you to exclude display of part of the listing output. In a directory where I have mixed files it allows using a string to avoid displaying all 300 files. I can do it with grep but the extra characters that I have to type '| grep -v <string>' gets old after doing a few hundred times a day. 'ls' in Android does not include the '-I' switch so right now I get to exercise the digits.

Thanks again.

Mel
 
Thanks LV246. Good solution but the firm's internal policy does not allow adding scripts as the device is treated as a 'record' with privileged information. I am limited to using what tools are stock and available.
 
Back
Top Bottom