[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] who is the fastest bash scripter?
- Subject: [ale] who is the fastest bash scripter?
- From: danscox at mindspring.com (Danny Cox)
- Date: 24 Feb 2003 14:48:22 -0500
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