Thursday, 26 August 2010

Find all files extension with a given path in unix

Today I wanted to find all the types of files that people are using in their "resources" part of their project. Here's the script that allowed to to ssh to our CI server to find it.

find . -path "*/src/main/resources/*" | awk -F . '{print $NF}' | grep -v "/" | sort -u

No comments:

Post a Comment