More On Find

At Oracle we do our development on Linux VMs running in one of our Data Centers.   Because of this I have had to get real familiar with various linux/unix commands.   I find this one particularly useful.

find . -name “*.jar” | while read LINE; do grep STRTOFIND “$LINE”;done

For STRTOFIND replace this with a classname and it will print the .jar’s that reference that class.

About these ads

About theartoftechonline

olutions Architect that has successfully lead large scale high volume implementations of business critical solutions. My passion is to lead teams of people to create highly effective scalable, reliable, and robust systems that solve very complex business problems.
This entry was posted in Commands, Find, Linux. Bookmark the permalink.

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 )

Connecting to %s