10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am having data in XML format and trying to extract codes form two fields called <String>, below is the data.
<Node>tollfree<Condition>BooleanOperator<Operation>AND</Operation><Condition>BooleanOperator<Operation>NOT</Operation><Condition>FieldSelection<Field Context="ALL fields"... (7 Replies)
Discussion started by: rramkrishnas
7 Replies
2. Shell Programming and Scripting
Hello Gents,
Please give a help with this case
Input
10001010G1
10001010G1
10001010G1
10001010G2
10001010G3
10001012G1
10001012G1
10001012G1
10001012G1
10001014G1
10001014G1
10001014G2 (5 Replies)
Discussion started by: jiam912
5 Replies
3. Shell Programming and Scripting
HI All,
I would like to pass a integer and get all values under this index the by using awk. Could anyone help?
Thanks :>
input:
1,2,3,4,5,6,7
1,2,3,48,5,6,7
1,2,3,4,5,6,7
e.g. i pass 4 to awk command
output:
4
48
4
Video tutorial on how to use code tags in The UNIX and Linux... (8 Replies)
Discussion started by: mimilaw
8 Replies
4. Shell Programming and Scripting
1 2 000060000
How do i return the point in the string where the 6 is?
i.e what I want on output is
1 2 5
something like awk '{print $1 $2 index($3,6) }'
but I can't get it to work
Thanks in advance (3 Replies)
Discussion started by: garethsays
3 Replies
5. UNIX for Dummies Questions & Answers
I have a line "My name is Deepak"
How can i search a string Deepak in the line and find out its index position.
Here in this case the result should be 12. (3 Replies)
Discussion started by: dr46014
3 Replies
6. Shell Programming and Scripting
Hi All,
I have a file (FileNames.txt) which contains the following data in it.
$ cat FileNames.txt
MYFILE17XXX208Sep191307.csv
MYFILE19XXX208Sep192124.csv
MYFILE20XXX208Sep192418.csv
MYFILE22XXX208Sep193234.csv
MYFILE21XXX208Sep193018.csv
MYFILE24XXX208Sep194053.csv... (5 Replies)
Discussion started by: krish_indus
5 Replies
7. UNIX for Dummies Questions & Answers
brothers why inode index starts from 1 unlike array inex which starts from 0
its a question from the design of unix operating system of maurice j.bach
i need to know the answer urgently...someone help please (1 Reply)
Discussion started by: sairamdevotee
1 Replies
8. Filesystems, Disks and Memory
why do inode indices starts from 1 unlike array indexes which starts from 0
its a question from "the design of unix operating system" of maurice j bach
id be glad if i get to know the answer quickly
:) (0 Replies)
Discussion started by: sairamdevotee
0 Replies
9. Shell Programming and Scripting
hi, :)
In a shell script i came accross the following lines
1.for i in ` find /home/oracle -name ch'
2.do
3.echo $i
4.idx=`expr index $i .`
5.done
Here iam not able to understand the porpose of the word "index" in line 4.
any help ?
cheers
RRK (3 Replies)
Discussion started by: ravi raj kumar
3 Replies
10. Shell Programming and Scripting
Hi, can anyone explain me how this works (how the flow goes)?
Example:
CLIENT="UNIXHELP"
The second argument passed $2="UNIX"
RESULT=`awk -F"=" '/CLIENTS=/ {len = index($2,"'${CLIENT}'");print len }' $2`
Thanks in advance. (1 Reply)
Discussion started by: abrd600
1 Replies
GStreamer::Index(3pm) User Contributed Perl Documentation GStreamer::Index(3pm)
NAME
GStreamer::Index - Generate indexes on objects
HIERARCHY
Glib::Object
+----GStreamer::Object
+----GStreamer::Index
METHODS
index = GStreamer::Index->new
integer = $index->new_group
indexentry or undef = $index->add_association ($id, $flags, $format, $value, ...)
o $id (integer)
o $flags (GStreamer::AssocFlags)
o $format (GStreamer::Format)
o $value (64 bit integer)
o ... (list)
indexentry or undef = $index->add_format ($id, $format)
o $id (integer)
o $format (GStreamer::Format)
indexentry or undef = $index->add_id ($id, $description)
o $id (integer)
o $description (string)
indexentry or undef = $index->add_object ($id, $key, $object)
o $id (integer)
o $key (string)
o $object (scalar)
indexentry or undef = $index->get_assoc_entry ($id, $method, $flags, $format, $value)
o $id (integer)
o $method (GStreamer::IndexLookupMethod)
o $flags (GStreamer::AssocFlags)
o $format (GStreamer::Format)
o $value (64 bit integer)
indexcertainty = $index->get_certainty
$index->set_certainty ($certainty)
o $certainty (GStreamer::IndexCertainty)
$index->commit ($id)
o $id (integer)
$index->set_filter ($func, $data=undef)
o $func (scalar)
o $data (scalar)
integer = $index->get_group
boolean = $index->set_group ($groupnum)
o $groupnum (integer)
$index->set_resolver ($func, $data=undef)
o $func (scalar)
o $data (scalar)
integer = $index->get_writer_id ($writer)
o $writer (GStreamer::Object)
PROPERTIES
'resolver' (GstIndexResolver : default "path" : readable / writable / private)
Select a predefined object to string mapper
SIGNALS
entry-added (GStreamer::Index, GStreamer::IndexEntry)
ENUMS AND FLAGS
flags GStreamer::AssocFlags
o 'none' / 'GST_ASSOCIATION_FLAG_NONE'
o 'key-unit' / 'GST_ASSOCIATION_FLAG_KEY_UNIT'
o 'delta-unit' / 'GST_ASSOCIATION_FLAG_DELTA_UNIT'
o 'last' / 'GST_ASSOCIATION_FLAG_LAST'
enum GStreamer::Format
o 'undefined' / 'GST_FORMAT_UNDEFINED'
o 'default' / 'GST_FORMAT_DEFAULT'
o 'bytes' / 'GST_FORMAT_BYTES'
o 'time' / 'GST_FORMAT_TIME'
o 'buffers' / 'GST_FORMAT_BUFFERS'
o 'percent' / 'GST_FORMAT_PERCENT'
enum GStreamer::IndexCertainty
o 'unknown' / 'GST_INDEX_UNKNOWN'
o 'certain' / 'GST_INDEX_CERTAIN'
o 'fuzzy' / 'GST_INDEX_FUZZY'
enum GStreamer::IndexLookupMethod
o 'exact' / 'GST_INDEX_LOOKUP_EXACT'
o 'before' / 'GST_INDEX_LOOKUP_BEFORE'
o 'after' / 'GST_INDEX_LOOKUP_AFTER'
enum GstIndexResolver
o 'custom' / 'GST_INDEX_RESOLVER_CUSTOM'
o 'gtype' / 'GST_INDEX_RESOLVER_GTYPE'
o 'path' / 'GST_INDEX_RESOLVER_PATH'
SEE ALSO
GStreamer, Glib::Object, GStreamer::Object
COPYRIGHT
Copyright (C) 2005-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See GStreamer for a full notice.
perl v5.14.2 2012-03-01 GStreamer::Index(3pm)