processi

about processes and engines

find based tools

leave a comment »

find” is one of the most useful program/command in a unix[-like] environment.

I wrote two small shell scripts based on it.


vf stands for “Vi[m] Find”, you type

vf '*Servlet.java'

and it will open in your editor ($EDITOR) the first file ending with “Servlet.java” that it’ll find in the current tree (the current dir and its subdirs, recursively).


fijar stands for “Find In JAR”. You can type

fijar 'Servlet'

and it will scan all the jars in the current directory to list the ones with files whose name contain the ‘Servlet’ string. If you add the ‘-r’ option, it will search in all the jars in the current directory and in the subdirs, recursively.


Just thought it might interest some hardcore command line coders. I’ll try to add more of my scripts there : http://www.openwfe.org/tools/.

After a discussion with my colleague Alain Hoang, I release those two scripts under the MIT License, which is very close to ‘public domain’. Thanks for the hint Alain.

Written by John Mettraux

September 28, 2006 at 4:14 am

Posted in dev, java, shell, technical

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

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: