hai
i am very new to unix.
i am having two files like this.
first.properties
cache.ZA.TL_CCY=SELECT trim(CCY_CODE)||trim(COUNTRY_CODE)||trim(CITY_CODE) AS... (4 Replies)
I have a file with has the following data
abaddda;;;;;;;;asdfd;;;d;dadfewdff;f;v;v;v;;v;v;v;v;v;v;v;w;;
;frf;r;v;afd;f;ad;f;d;;va;;g;g;sd;a;dg;ag;ads;ga;dga;d;dsa;;;;
;;sd;df;asd;f;df;adf;adf;;df;df;;d;f;f;sf;df;f;df;;fd;f;f;sdfd;;;;
I want to replace every 13 th semicolon ; in... (1 Reply)
I have a file that is formatted in this way.
a1;b2;c33;d4;e5;e;f;f;f;s
d;ds;d;a;v;b;g;gr;r;rt;fdf
s1;s2;s2;s3;s4;
b1;f2;g3;h4;a3c4e;xcsd;fds;
sd2;fs4;fs2;sdf3;
I want to replace the value just before the 4th semicolon to empty string, regardless the value, such that it looks... (3 Replies)
Can someone tell me how I can do this?
e.g:
Say file1.txt contains:
today is monday
the 22 of
NOVEMBER
2010
and file2.txt contains:
the
11th
month
of
How do i replace the word NOVEMBER with (5 Replies)
I get a file which has all its content in a single row.
The file contains xml data containing 3000 records, but all in a single row, making it difficult for Unix to Process the file.
I decided to insert a new line character at all occurrences of a particular string in this file (say replacing... (4 Replies)
Hello,
I have a 100 line code. I have given a sample of it below:
ABC*654654*1*54.54*21.2*87*1*654654654654
CCC*FS*FS*SFD*DSF
GGG*FGH*CGB*FBDFG*FGDG
ABC*654654*1*57.84*45.4*88*2*6546546545
CCC*WSF*SG*FGH*GHJ
ADA*AF*SFG*DFGH*FGH*FGTH
I need to select the line starting with "ABC" its... (6 Replies)
Hello,
I have a 100 line code. I have given a sample of it below:
ABC*654654*1*54.54*21.2*87*1*654654654654
CCC*FS*FS*SFD*DSF
GGG*FGH*CGB*FBDFG*FGDG
ABC*654654*1*57.84*45.4*88*2*6546546545
CCC*WSF*SG*FGH*GHJ
ADA*AF*SFG*DFGH*FGH*FGTH
I need to select the line starting with "ABC" its... (3 Replies)
Hi,
I currently have a problem that I need to read a file line by line.
After I read it line by line there are some commands in which I have to change a specific string.(In my case, I have to make a script that changes all the passwords into hash value)
Here is a sample input... (3 Replies)
Hi Everyone,
I have a requirement in ksh where i have a set of files in a directory. I need to search each and every file if a particular string is present in the file, delete that line and replace that line with another string expression in the same file.
I am very new to unix. Kindly help... (10 Replies)
Hello again people,
I have a list of websites in this format:
domain.com
domain1.com
domain2.com
domainwww.com
domain2www.com
domain3www.com
www.domain.com
www.domain2.com
www.domain3.com
I want to replace the string "www." with "nothing" but only lines that start with "www."
... (3 Replies)
Discussion started by: galford
3 Replies
LEARN ABOUT MOJAVE
uri::ldap
URI::ldap(3) User Contributed Perl Documentation URI::ldap(3)NAME
URI::ldap - LDAP Uniform Resource Locators
SYNOPSIS
use URI;
$uri = URI->new("ldap:$uri_string");
$dn = $uri->dn;
$filter = $uri->filter;
@attr = $uri->attributes;
$scope = $uri->scope;
%extn = $uri->extensions;
$uri = URI->new("ldap:"); # start empty
$uri->host("ldap.itd.umich.edu");
$uri->dn("o=University of Michigan,c=US");
$uri->attributes(qw(postalAddress));
$uri->scope('sub');
$uri->filter('(cn=Babs Jensen)');
print $uri->as_string,"
";
DESCRIPTION
"URI::ldap" provides an interface to parse an LDAP URI into its constituent parts and also to build a URI as described in RFC 2255.
METHODS
"URI::ldap" supports all the generic and server methods defined by URI, plus the following.
Each of the following methods can be used to set or get the value in the URI. The values are passed in unescaped form. None of these
return undefined values, but elements without a default can be empty. If arguments are given, then a new value is set for the given part
of the URI.
$uri->dn( [$new_dn] )
Sets or gets the Distinguished Name part of the URI. The DN identifies the base object of the LDAP search.
$uri->attributes( [@new_attrs] )
Sets or gets the list of attribute names which are returned by the search.
$uri->scope( [$new_scope] )
Sets or gets the scope to be used by the search. The value can be one of "base", "one" or "sub". If none is given in the URI then the
return value defaults to "base".
$uri->_scope( [$new_scope] )
Same as scope(), but does not default to anything.
$uri->filter( [$new_filter] )
Sets or gets the filter to be used by the search. If none is given in the URI then the return value defaults to "(objectClass=*)".
$uri->_filter( [$new_filter] )
Same as filter(), but does not default to anything.
$uri->extensions( [$etype => $evalue,...] )
Sets or gets the extensions used for the search. The list passed should be in the form etype1 => evalue1, etype2 => evalue2,... This is
also the form of list that is returned.
SEE ALSO
<http://tools.ietf.org/html/rfc2255>
AUTHOR
Graham Barr <gbarr@pobox.com>
Slightly modified by Gisle Aas to fit into the URI distribution.
COPYRIGHT
Copyright (c) 1998 Graham Barr. 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 2012-02-11 URI::ldap(3)