Hi there,
may someone easily help me on this :
I want to insert a text in a specific line number like :
linenumb2start=`cat memory_map.dld | nl -ba | egrep -i "label" | cut -f1`
line2insert=`expr $linenumb2start + 2`
and now I need to replace something like {} with {comment} at... (8 Replies)
Hi,
I need help with using an awk or sed filter on the below line
ALTER TABLE "ACCOUNT" ADD CONSTRAINT "ACCOUNT_PK" PRIMARY KEY ("ACCT_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "WMC_DATA" LOGGING ENABLE
Look for... (2 Replies)
Hi,
I need help with using an awk or sed filter on the below line
ALTER TABLE "ACCOUNT" ADD CONSTRAINT "ACCOUNT_PK" PRIMARY KEY ("ACCT_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "WMC_DATA" LOGGING ENABLE
Look for... (1 Reply)
hi guys,
I want to do pattern matching with awk or sed but I don't know how. here's what I want:
I have a line number for a pattern that I have already found using grep, and I know a pattern like "---" that happens a few lines above that certain line number. I want to print out the chunk... (1 Reply)
Hello. I'm trying to delete the lines of a file does not contain the letter "T " (for example) at position 26.
So far, I could only print the result:
awk '{if (substr ($ 1,1,26)! ~ / T /) print}' file.txt
How I can do to eliminate the lines that meet this condition?
Help please. ... (4 Replies)
I Have file1 with below lines :
#HostNameSelection=0 :NotUsed
#HostNameSelection=1 :Automatic
#HostNameSelection=3 :NotForced
I have file2 which has similar lines but with different values
I want to copy the changes from file1 to file2 ,line by line only if line begins with '#'.
for... (7 Replies)
Sample file:
This is line one,
this is another line,
this is the PRIMARY INDEX line
l ;
This is another line
The command should find the line with “PRIMARY INDEX” and remove the last character from the line preceding it (in this case , comma) and remove the first character from the line... (5 Replies)
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Today I needed to take a look through a load of large backup files, so I wrote the following line to find them, order them by size, and print the file sizes in GB along with the filename. What happened was odd, the output was all as expected except for the first output line which had the filename... (4 Replies)
if the value > 100 delete the line
delay time: 42.978 ms
delay time: 43.684 ms
delay time: 41.082 ms
delay time: 44.845 ms
delay time: 40000.057 ms
delay time: 41.158 ms
delay time: 42.239 ms
delay time: 50.579 ms
delay time: 46.334 ms
to (7 Replies)
Discussion started by: yanglei_fage
7 Replies
LEARN ABOUT DEBIAN
net::dri::data::contactset
Net::DRI::Data::ContactSet(3pm) User Contributed Perl Documentation Net::DRI::Data::ContactSet(3pm)NAME
Net::DRI::Data::ContactSet - Handle an ordered collection of contacts for Net::DRI
DESCRIPTION
This class encapsulates a set of contacts, with associated types. For each type, it can stores as many contacts as needed. Contacts are
compared among themselves by calling the id() method on them. Thus all Contact classes must define such a method, which returns a string.
METHODS
new()
creates a new object
types()
returns the list of current types stored in this class
has_type()
returns 1 if the given type as first argument has some contacts in this object, 0 otherwise
add()
with the first argument being a contact, and the second (optional) a type, adds the contact to the list of contacts for this type or all
types (if no second argument). If the contact already exists (same id()), it will be replaced when found. Returns the object itself.
del()
the opposite of add()
rem()
alias for del()
clear()
removes all contact currently associated to all types
set()
with an array ref as first argument, and a type (optional) as second, set the current list of the given type (or all types) to be the list
of contacts in first argument. Returns the object itself.
get()
returns list (in list context) or first element of list (in scalar context) for the type given as argument
get_all()
returns list of contacts, without duplicates, for all types
SUPPORT
For now, support questions should be sent to:
<netdri@dotandco.com>
Please also see the SUPPORT file in the distribution.
SEE ALSO
http://www.dotandco.com/services/software/Net-DRI/
AUTHOR
Patrick Mevzek, <netdri@dotandco.com>
COPYRIGHT
Copyright (c) 2005,2006,2007,2008 Patrick Mevzek <netdri@dotandco.com>. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
See the LICENSE file that comes with this distribution for more details.
perl v5.10.1 2010-03-25 Net::DRI::Data::ContactSet(3pm)