Skip to content

Instantly share code, notes, and snippets.

@mmenozzi
Created December 14, 2012 20:14
Show Gist options
  • Save mmenozzi/4288294 to your computer and use it in GitHub Desktop.
Save mmenozzi/4288294 to your computer and use it in GitHub Desktop.
Find test
#!/bin/bash
mkdir /tmp/findtest
mkdir /tmp/findtest/.git
mkdir /tmp/findtest/.foo
touch /tmp/findtest/.foo/.bar
touch /tmp/findtest/.bar
touch /tmp/findtest/test.py
mkdir /tmp/findtest/foo
touch /tmp/findtest/foo/bar.tmp
touch /tmp/findtest/test.php
mkdir /tmp/findtest/toto
touch /tmp/findtest/foo\ bar
find '/tmp/findtest' -noleaf -mindepth 1 -type d -not \( -regex '.*/\.[^/]+[^/]*' \)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment