Match any pathname with GLOB
Submitted by rimian on Sat, 07/12/2008 - 02:50
Here's how to match path names with GLOB
Glob is an old Unix Program that's now built into the Unix Shell. Glob can be used for cleaning out directories of unwanted files or restricting a regular expression search to certain filenames.
Wildcard Matching
A string is a wildcard pattern if it contains one of the characters ‘?’, ‘*’ or ‘[’.
Match any single character with: ?
Match any string (including empty) with: *
So to list all your php files:
ls *.php
See also:
Glob man pages
ls Man pages
Php's Glob Manual
Cygwin for Windows users who want a Unix Style Shell Environment:
New forum topics
- Sydney web developer wanted
- WANTED Web Developer / Designer- unique and exciting project in Perth (The birth of a new brand)
- Outsource programming work to my people India - great rates, reliable work.
- Looking for part-time Web development jobs in Melbourne
- PHP programmer available for contract and freelance work.
- A Small Easy Project For Programmer
- PHP, MySQL, Apache, Linux (LAMP) Developer Available (Sydney West)
- Selenium - Testing IDE for Firefox
- FWD Freelancers Listing
- Australian Drupal Developers
- Seeking Ruby on Rails developers - blue chip client; great rates
- Drupal Australia IRC
- Melbourne/Adelaide based developer required
- Looking to keep a couple of my team members busy
- Interested in working for equity rather than cash?

Post new comment