Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exclude some files #1

Open
tamouse opened this issue Nov 5, 2018 · 1 comment
Open

exclude some files #1

tamouse opened this issue Nov 5, 2018 · 1 comment

Comments

@tamouse
Copy link
Owner

tamouse commented Nov 5, 2018

don't want zips, tars, logs, tmp dirs, _excludes, _originals, etc

permitted (pass filter) file extensions?

(jpe?g|gif|png|json|md|markdown|html|txt|org)

unpermitted (block filter) directories starting with '_' ? it already omits dot files.

'\/(te?mp|logs?|bin|_.*)\/'
@tamouse
Copy link
Owner Author

tamouse commented Nov 5, 2018

tamara@Mattimeo:Art:2018-11-05@01:59:43
$ find . -type d | egrep -iv '\/(te?mp|logs?|bin|_.*)$' | head
.
./artists-journal
./digital
./digital/2018-06-03-oldbob-sketch
./digital/flowpaper
./digital/flowpaper/webs
./digital/gimp
./digital/graffiti
./digital/Inktober
./digital/Iris

tamara@Mattimeo:Art:2018-11-05@02:00:42
$ find . -type f | egrep -iv '\/(te?mp|logs?|bin|_.*?)\/' | egrep -i '(\/|\.(jpe?g|png|gif|html?|md|markdown|te?xt|org|json|ya?ml))$' | head
./about.md
./artists-journal/20140827_001120.jpg
./artists-journal/20140827_100719-wb.jpg
./artists-journal/20140827_100719.jpg
./artists-journal/20140831_090209.jpg
./artists-journal/20141007_073425-greyscale.jpg
./artists-journal/20141007_073425.jpg
./artists-journal/20141007_073436.jpg
./artists-journal/20141014_131039-elephant-sketch.jpg
./artists-journal/20151102_065151-auto-fabrica-type-6.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant