Wednesday, September 1, 2010

Multiple patterns in a sinlge grep command

find . -name "*" | grep -E '\.c$|\.cc$|\.h$|\.cpp$|\.cxx$'

No comments:

Post a Comment