-
Notifications
You must be signed in to change notification settings - Fork 1.8k
SC2010
Daniel YC Lin edited this page Jan 4, 2018
·
16 revisions
ls /directory | grep target_file_pattern
ls /directory/target_file_pattern
Matching non-alphanumeric characters with grep may require escaping. Typically it is cleaner to use the built in pattern matching or another command like find
Matching the negative list.
ls /directory | grep -v NOT_target_file_pattern