Hi...
i just want to write a script for the follwing command "display status" and the normal output is...
AN100> display status
12.13.2006 12:03:25 AN-2000-1 CC NOT PRESENT 16.50.80.49
status: Status for PACKET GLI A in the TOP / LEFT shelf of frame 0:
status: The current active LAN is... (5 Replies)
Hi all;
I'm stuck with this simple awk script,i need to group the lines which the position of 28 length 3 that contains "688" into 1 group and other than "688" into another group. My problem is the script only read other than "688" and ignores the lines which contains "688".
The file look... (2 Replies)
Hi Guys,
I just wanted to print all the lines execpt 1st and 3rd line. For that i wrote a awk command,
awk 'NR != 1 || NR != 3 {print $0}' c.out
the command is working if i give an equal to instead of not equal to.
In the case of not equal to, it gives me the entire file.
Can you... (18 Replies)
Hello experts,
I'm stuck with this script for three days now. Here's what i need.
I need to split a large delimited (,) file into 2 files based on the value present in the last field.
Samp: Something.csv
bca,adc,asdf,123,12C
bca,adc,asdf,123,13C
def,adc,asdf,123,12A
I need this split... (6 Replies)
Hi Friends,
I have an input file like this
cat input
chr1 100 200 1 2
chr1 120 130 na 1
chr1 140 160 1 na
chr1 170 180 na na
chr1 190 220 0 0
chr1 220 230 nd 1
chr2 330 400 1 nd
chr2 410 450 nd nd
chr3 500 700 1 1
I want to calculate the division of 4th and 5th columns. But, if... (3 Replies)
Need help in awk command.
Need to check 4th column of a file, if it is CAR then awk should print as is and if 4th column is not present, awk should print BIKE
Input File content :
1,abc,55,CAR
3,bb,dd,CAR
5,ddd,tttt
8,ee,55
---------------------
Out put will look like:
1,abc,55,CAR... (6 Replies)
Hi Gurus,
one of my current script, there is awk statement as below:
awk '{a=a?a" "$3:$3}END{for (i in a) print i,a}'
I don't understand what's "{a=a?a" "$3:$3}" mean?
can anybody give me a brief explaination.
thanks in advance. (3 Replies)
Hi All,
I have the below Input:
1 700 1200 400 1300
2 2000 1000 2000 1500 600
3 1400 200 1000 1000 1200
4 1300 500 600 200
I want to modify the field 5 and field 4 as below.
If value in field 5 is null then value of field 4 should be in field 5. and then the value of... (12 Replies)
Hello All,
I have developed a script which selects a particular filed from a file ,trims it,searches for a particular pattern and then mail it when found.
cat test_file.txt |sed -n '5,$p'|sed -e 's/ //g'|awk -F'|' '{if ($4 !="Alive") print $1,$2,$3,$4}' >> proc_not_alive.txt
It is... (4 Replies)
Hi All,
Would you guys help me?
I have a file that consists of several unstructured fields. in this file I will take the code field and count_berry field.
but the position of the count_berry field is always changing.the column for code is always structured, which is found in column 6
I have... (4 Replies)
Discussion started by: kivale
4 Replies
LEARN ABOUT SUSE
scout
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)