Sponsored Content
Full Discussion: Search inside a Jar file..
Top Forums Shell Programming and Scripting Search inside a Jar file.. Post 302271533 by srikumar_cs on Friday 26th of December 2008 07:57:12 AM
Old 12-26-2008
Search inside a Jar file..

Hey Guys,

I need to search inside all the jar files of my directory for a specific string. Can anyone guide me as to how i can do it. I need this urgently please. More specifically i need to search for a class file name in the jar files.

Thanks in advance :-)
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Jar File Search!

Hi vgersh99, Iam sorry for that. In future, I will start new threads for different topics. Assuming that we don't know what the name of the jar file, we are searching for is, do we have any way, of finding a string or a file in it. Is there any Unix command for it? thanks. (2 Replies)
Discussion started by: pjanakir
2 Replies

2. Shell Programming and Scripting

How to search a pattern inside a zipped file ie (.gz file) with out unzipping it

How to search a pattern inside a zipped file ie (.gz file) with out unzipping it? using grep command.. Bit urgent.. pls..help me (2 Replies)
Discussion started by: senraj01
2 Replies

3. UNIX for Dummies Questions & Answers

Search and Parse string from inside a File

Hello, I barely know the basics, but I am very determined to learn. I want to parse a few characters from each row, use that string to search another file and display the line number where I found the value in the file. I don't know if this can all be done on the command line, so I am creating a... (2 Replies)
Discussion started by: SSims
2 Replies

4. UNIX for Dummies Questions & Answers

down in JAR file

Hello sir, I have created a jar file having some code in java.What it does is that it calls a shell code (a.sh) which is in the same directory. Now my requirement is that I want to jar the a.sh also along with the other files and want to call the a.sh which is now inside the jar file and not... (1 Reply)
Discussion started by: nsharath
1 Replies

5. UNIX for Advanced & Expert Users

how to read a file inside jar

how to read the text file inside the jar without extracting jar. (3 Replies)
Discussion started by: karthikn
3 Replies

6. Shell Programming and Scripting

Want to write all the jar name in single with delimiter ":" in beween the jar name

Hi All, I am having 7 jar files in a dir. abc like listed below bash-3.00$ cd abc bash-3.00$ ls 123.jar 23wdawd.jar dfsa23.jar dsa.jar wew234.jar adsd234234.jar dfsda423.jarNow i want to assign all this jar files to a variable in the below format ... (6 Replies)
Discussion started by: natraj005
6 Replies

7. Shell Programming and Scripting

Search inside a file, PERL

HEllo!! I need a script in perl that see inside a file(file.txt) that has only one row. The row contains only this text: logs_yearly = 20120628113345 I want that the script does this: "Search in the file, if the date 20120628 is actual date" Thank you!! ---------- Post... (4 Replies)
Discussion started by: super_sun
4 Replies

8. UNIX for Beginners Questions & Answers

Search a string inside a pattern matched block of a file

How to grep for searching a string within a begin and end pattern of a file. Sent from my Redmi 3S using Tapatalk (8 Replies)
Discussion started by: Baishali
8 Replies

9. UNIX for Beginners Questions & Answers

Getting the version from jar file

Hi, I am trying to retrieve the "Implementation version" from one of the .jar file The command which tried is as below. find /usr/local/platform -name "platform.jar" -exec zipgrep "Implementation-Version:" '{}' \;|awk -F ': ' '{print $2}'I am able to get the version as below 2.9.0-29But... (2 Replies)
Discussion started by: nextStep
2 Replies
SCOUT(1)						    http://en.opensuse.org/Sco							  SCOUT(1)

NAME
scout - A Package Scout SYNOPSIS
scout [global_options] {module} {search_term} [module_options] OPTIONS
The following options are available: global_options, module The global options are handled by scout itself. --format Specify the default output format. Choices are table (default), xml, csv. It's a replacement of the older scoutcsv, scoutxml links. --help Print a brief help. --version Print version. The respective module to search for. The following modules are available: autoconf Search for autoconf macros inside m4 files. bin Search for binaries contained in packages. header Search for C/C++/Obj-C/Obj-C++ headers java Search for Java classes inside packaged JAR files. python Search for Python modules. webpin Search in packages using the Webpin webservice. search_term The term you are looking for. module_options Additional module options. At the moment these are: --listrepos list all available repositories --repos=REPO, -r REPO select a repository to search (use a name from the --listrepos output) DESCRIPTION
Scout is a tool to look for uninstalled packages. For example, which binary does a package provide, which Java classes are available and which autoconf macros does a package contain. To search for your requested term, you need index data files which are a preconfigured SQLite 3 database. You have to install these in order to get your search request done. Use the Scout OBS data repository[1] to get additional index files. See the Wiki page about Scout[2] for more information. EXAMPLE 1: SEARCH FOR EXECUTABLES For example, to search for a sdl-config executable, you need the bin module: $ scout bin sdl-config You get the following output: repository | binary | path | package ------------+------------+-----------------------------+----------------- suse110 | sdl-config | /usr/bin | SDL-devel suse110 | sdl-config | /usr/lib/baselibs-32bit/bin | SDL-devel-32bit EXAMPLE 2: SEARCH FOR JAVA PACKAGES If you want to search for a Java package, use the following code: $ scout java org.apache.xml.serialize.Serializer You get: repository | package | jar | class ------------+------------------+---------------------+------------------------------------------------ jpackage17 | jboss4-testsuite | xerces.jar | org.apache.xml.serialize.Serializer jpackage17 | jboss4-testsuite | xerces.jar | org.apache.xml.serialize.SerializerFactory jpackage17 | jboss4-testsuite | xerces.jar | org.apache.xml.serialize.SerializerFactoryImpl jpackage17 | xerces-j2 | xerces-j2-2.9.0.jar | org.apache.xml.serialize.Serializer jpackage17 | xerces-j2 | xerces-j2-2.9.0.jar | org.apache.xml.serialize.SerializerFactory jpackage17 | xerces-j2 | xerces-j2-2.9.0.jar | org.apache.xml.serialize.SerializerFactoryImpl EXAMPLE 3: SEARCH THROUGH WEBPIN If you want to use the openSUSE Search Webservice[3]--also known as "Webpin"--use the following line: $ scout webpin docbook_5.xml You get: package | version | arch | repository URL | matched files -----------+---------+--------+-----------------------------------------------------------------------------------+------------------------ docbook_5 | 5.0 | noarch | http://download.opensuse.org/distribution/SL-OSS-factory/inst-source/suse | /etc/xml/docbook_5.xml docbook_5 | 5.0CR7 | noarch | http://download.opensuse.org/repositories/home:/thomas-schraitle/openSUSE_Factory | /etc/xml/docbook_5.xml docbook_5 | 5.0 | noarch | http://download.opensuse.org/repositories/XML/xml-factory | /etc/xml/docbook_5.xml BASH COMPLETION
If you like to complete your options automatically through Bash, insert the following lines into your ~/.bashrc or /etc/bash.bashrc: if [ -f /etc/bash_completion.d/scout.sh ]; then . /etc/bash_completion.d/scout.sh fi SEE ALSO
command-not-found(1) AUTHORS
Pavol Rusnak <stick@gk2.sk> Developer Michal Vyskocil <mvyskocil@suse.cz> Developer Ales Nosek <anosek@suse.cz> Index data for Java Pascal Bleser <guru@unixtech.be> Webpin code Marek Stopka <mstopka@opensuse.org> Bash completion Thomas Schraitle <toms@suse.de> Docbook documentation Klaus Kaempf <kkaempf@suse.de> Help with python-satsolver NOTES
1. Scout OBS data repository http://download.opensuse.org/repositories/home:/prusnak:/scout/data 2. Wiki page about Scout http://en.opensuse.org/Scout 3. openSUSE Search Webservice http://software.opensuse.org/search http://gitorious.org/opensus 08/07/2009 SCOUT(1)
All times are GMT -4. The time now is 08:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy