[ale] who is the fastest bash scripter?

Danny Cox danscox at mindspring.com
Mon Feb 24 14:48:22 EST 2003


Jason,

On Mon, 2003-02-24 at 14:20, Jason Vinson wrote:
> I want to run a bash script that will do the following:
> 
> jar -tf *.jar | grep <classname>

for f in *.jar
do
	jar -tf $f | grep <classname> && echo $f has one
done

	Very similar to Michael's, but the echo helps.  This works when you're
trying to find in what library function X lives:

for f in lib*.a
do
	nm $f | grep <func> && echo $f has one
done

you really must look at the output close, because other libraries may
have the reference, but it's 'U' or undefined at that point, and so must
discard those.

-- 
kernel, n.: A part of an operating system that preserves the
medieval traditions of sorcery and black art.

Danny

_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale






More information about the Ale mailing list