Friday, September 18, 2009

Find files & directories in terminal


# Simple method to find files recursively from path with which matches expression
find ./ -name "*.rb"

# find directories recursively which matches expression (directory type)
find ./ -name 'specs*' -type d

No comments:

Blog Archive