Skip to content

Instantly share code, notes, and snippets.

@natesilva
Created January 17, 2011 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natesilva/783687 to your computer and use it in GitHub Desktop.
Save natesilva/783687 to your computer and use it in GitHub Desktop.
Find command shown as Stack Overflow answer doesn’t work
### See http://j.mp/ffN320
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=9.10
DISTRIB_CODENAME=karmic
DISTRIB_DESCRIPTION="Ubuntu 9.10"
$ mkdir mydir
$ cd mydir
$ touch test.h test.cpp
$ ls
test.cpp test.h
$ find . -name \*.h -o -name \*.cpp -print
./test.cpp
$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment