Paul Lamere’s find command

Paul Lamere’s find command

$ find . -name “*.java” | xargs cat | grep “^import java” |\

sort | uniq -c | sort -nr | head -20

Sample output:

122 import java.io.IOException;

108 import java.util.List;

101 import java.util.Iterator;

62 import java.util.Map;

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s