Hi all... I was accidentally wipe off my iphone and lost all the data in it:(. So I tried to use dd to create an image from iphone and ssh to the Mac by using:
dd if=/dev/disk | ssh user@MacIP of='image.img'
Then I mount this image on Mac/Windows and run recovery software because most of the... (1 Reply)
I need help with perl code. I have a data file with lots of data
example: data.txt file
START
DATA1 sjdfh kjhdf
DATA2 sdkjfhk jds dshfgdf
... Around 20 - 30 lines
END
LDDDD awdkjasd a sdkahgdk jasdh
SOME CRAP
Some EMPTY lines etc
START
DATA1 sjdfh kjhdf
DATA2 sdkjfhk jds... (2 Replies)
I have an array of distances and a len, for example
len = 323
dist =
I want to calculate the start and end index values around each distance in the array with a length of len from it. Values in dist are stored in ascending order. (4 Replies)
Hi,
I am trying to remove lines once a string is found till another string is found including the start string and end string. I want to basically grab all the lines starting with color (closing bracket). PS: The line after the closing bracket for color could be anything (currently 'more').... (1 Reply)
Hi guys,
I am having the below logfile,date in yyyy-mm-dd
2013-08-02 *some content*
2013-08-02 *some content*
2013-08-02 *some content*
2013-08-03 *some content*
2013-08-05 *some content*
from the above logfile i need to get the lines between the two timestamps,if i give... (5 Replies)
I have a file as follows:
0
1056
85540
414329
774485
1208487
1657519
2102753
2561259
3037737
3458144
3993019
4417959
4809964
5261890
5798778
6254146
I want to find all lines between a specified start and end tag. (6 Replies)
Hi, In my previous post ( How to print lines from a files with specific start and end patterns and pick only the last lines? ), i have got a help to get the last select statement from a file, now i need to remove/exclude the output from main file:
Input File format:
SELECT
ABCD,
DEFGH,... (2 Replies)
Hi, I need to print lines which are matching with start pattern "SELECT" and END PATTERN ";" and only select the last "select" statement including the ";" .
I have attached sample input file and the desired input should be as:
INPUT FORMAT:
SELECT
ABCD,
DEFGH,
DFGHJ,
JKLMN,
AXCVB,... (5 Replies)
Below are my custom period start and end dates based on a calender, these dates are placed in a file, for each period i need to split into three weeks for each period row, example is given below.
Could you please help out to achieve solution through shell script..
File content:
... (2 Replies)
Discussion started by: nani2019
2 Replies
LEARN ABOUT MOJAVE
net::ldap::control::persistentsearch
Net::LDAP::Control::PersistentSearch(3) User Contributed Perl Documentation Net::LDAP::Control::PersistentSearch(3)NAME
Net::LDAP::Control::PersistentSearch - LDAPv3 Persistent Search control object
SYNOPSIS
use Net::LDAP;
use Net::LDAP::Control::PersistentSearch;
$ldap = Net::LDAP->new( "ldap.mydomain.eg" );
$persist = Net::LDAP::Control::PersistentSearch->new( changeTypes => 15,
changesOnly => 1,
returnECs => 1 );
$srch = $ldap->search( base => "cn=People,dc=mydomain,dc=eg",
filter => "(objectClass=person)",
callback => &process_entry, # call for each entry
control => [ $persist ] );
die "error: ",$srch->code(),": ",$srch->error() if ($srch->code());
sub process_entry {
my $message = shift;
my $entry = shift;
print $entry->dn()."
";
# reduce memory usage
$message->pop_entry();
}
DESCRIPTION
"Net::LDAP::Control::PersistentSearch" provides an interface for the creation and manipulation of objects that represent the
"PersistentSearch" control as described by draft-smith-psearch-ldap-03.txt.
CONSTRUCTOR ARGUMENTS
In addition to the constructor arguments described in Net::LDAP::Control the following are provided.
changeTypes
An integer value determining the types of changes to look out for. It is the bitwise OR of the following values (which represent the
LDAP operations indicated next to them):
1 = add
2 = delete
4 = modify
8 = modDN
If it is not given it defaults to 15 meaning all changes.
changesOnly
A Boolean value telling whether the server may return entries that match the search criteria.
If "TRUE" the server must not return any existing entries that match the search criteria. Entries are only returned when they are
changed (added, modified, deleted, or subject to a modifyDN operation)
returnECs
If "TRUE", the server must return an Entry Change Notification control with each entry returned as the result of changes.
See Net::LDAP::Control::EntryChange for details.
METHODS
As with Net::LDAP::Control each constructor argument described above is also available as a method on the object which will return the
current value for the attribute if called without an argument, and set a new value for the attribute if called with an argument.
SEE ALSO
Net::LDAP, Net::LDAP::Control, Net::LDAP::Control::EntryChange
AUTHOR
Peter Marschall <peter@adpm.de>, based on Net::LDAP::Control::Page from Graham Barr <gbarr@pobox.com> and the preparatory work of Don
Miller <donm@uidaho.edu>.
Please report any bugs, or post any suggestions, to the perl-ldap mailing list <perl-ldap@perl.org>
COPYRIGHT
Copyright (c) 2004 Peter Marschall. All rights reserved. This program is free software; you can redistribute it and/or modify it under the
same terms as Perl itself.
perl v5.18.2 2013-07-21 Net::LDAP::Control::PersistentSearch(3)