07-31-2009
Hm, you're right, should have checked that. Change that from (/.+?) to (/[^/]+?) and it should be fine.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Seems I'm inundating this forum with questions, but anyway:
I am writing a script that should accept one and only one argument when called.
That argument should designate a file, either with path/filename or just filename.
Now to the difficult bit:
I want to figure out a way to store... (9 Replies)
Discussion started by: ropers
9 Replies
2. Shell Programming and Scripting
Hi there
With shell script I'm trying to split the string into two parts. One is alphanumeric part, the other one is a numeric part.
dummy_postcode_1 = 'SL1'
--> res_alpha = 'SL' and res_numeric = '1'
dummy_postcode_2 = 'S053'
--> res_alpha = 'S' and res_numeric = '053' ... (1 Reply)
Discussion started by: ozgurgul
1 Replies
3. Shell Programming and Scripting
Hi,
I am new to this world of shell programming. I am facing a problem that is :
I have directory which has many sub directories at different depth. say
A/B/C/files
A/B/files
A/B/C/D/files
In this directory structure there exists a file called ".project" in some of the sub... (2 Replies)
Discussion started by: bhaskar_m
2 Replies
4. Shell Programming and Scripting
For a field format such as AAL1001_MD82, how do I select(and use in if statement) only the last four elements( in this case MD82) or the first three elements (in this case AAL)?
For instance, how do I do the following - if first three elements of $x == yyy, then ... (5 Replies)
Discussion started by: akshaykr2
5 Replies
5. Shell Programming and Scripting
Hi there, i wonder, is it possible to use regular expressions to partially select a string?
I have a bunch of server names which look like this
server1z-test
server2z2
server45z-primary
server13z3
I want to extract up to and including the 'z' in the server name, so for example
... (4 Replies)
Discussion started by: hcclnoodles
4 Replies
6. Shell Programming and Scripting
Hello,
let's start by giving you guys a few examples of the text:
"READ /TEXT123/ABC123"
"READ /TEXT123/ABC123/"
"READ TEXT123/ABC123"
"READ TEXT123/ABC123/"
"READ TEXT123/TEXT456/ABC123"
"READ /TEXT123/TEXT456/ABC123"
"READ /TEXT123/TEXT456/ABC123/"
TEXT and ABC can be and I... (5 Replies)
Discussion started by: TehOne
5 Replies
7. Shell Programming and Scripting
Greetings everyone. Right now I am working on a script to be used during automated deployment of servers. What I have to do is remove localhost.localdomain and localhost6.localdomain6 from the /etc/hosts file. Simple, right? Except most of the examples I've found using sed want to delete the entire... (4 Replies)
Discussion started by: msarro
4 Replies
8. Shell Programming and Scripting
Hi all,
I have a string that looks like:
#!/bin/sh
options="arguments: --user=alpha --group=beta --prefix=/usr/share --proxy-path=/proxy --proxy-tmp=/tmp --conf-path=/etc"
My goal is to transform the string into an array, then for each key, if it starts with "--proxy" to print the string... (2 Replies)
Discussion started by: TECK
2 Replies
9. Shell Programming and Scripting
Hi,
How can I display only one shortest path (A/B/configure)?
$ grep configure file.txt
A/B/configure
A/B/C/configure
A/B/C/D/configure
Thank you. (9 Replies)
Discussion started by: hce
9 Replies
10. Shell Programming and Scripting
Can somebody help me on below question
I have path and i want to select first two directory name in variable how we can do this.
/Myname/xyz/yourname/abc/somebodyname
i want to select /Myname/xyz in variable.
Quick help will be appriciated.
Thanks in advance
Regards,
Kumar (10 Replies)
Discussion started by: yadavricky
10 Replies
LEARN ABOUT DEBIAN
cipux::object::action::attribute::change
CipUX::Object::Action::Attribute::Change(3pm) User Contributed Perl Documentation CipUX::Object::Action::Attribute::Change(3pm)
NAME
CipUX::Object::Action::Attribute::Change - Object layer class for CipUX
VERSION
version 3.4.0.5
SYNOPSIS
use CipUX::Object::Action::Attribute::Change;
DESCRIPTION
Provides the functions cipux_object_create and cipux_object_destroy as well as some auto-calculated values for example for userPassword.
ABSTRACT
The CipUX object layer is a generic abstract class, which can be used by other classes or scripts.
The function cipux_object_create may create one or several LDAP nodes according to the configuration structure in
/etc/cipux/cipux-object.conf or ~/.cipux/cipux-object.conf.
The function cipux_object_destroy tries to remove one or more LDAP nodes.
SUBROUTINES
/METHODS
The following functions will be exported by CipUX::Object::Action::Attribute::Change.
change_object_attribute_action
Change (add, modify, erase) one or more attribute values.
use CipUX::Object::Action::Attribute::Change;
my $c = CipUX::Object::Action::Attribute::Change->new();
$c->change_object_attribute_action( {
# API 1 args
action => $action,
type => $type,
attr_hr => $attr_hr,
# API 2 args
object => $object,
scope => $scope,
changes_hr => $changes_hr,
filter_hr => $filter_hr,
target_hr => $target_hr,
} );
Where as for example:
action => 'change_object_attribute_action',
type => 'cipux_account_object',
attr_hr => $attr_hr,
object => 'rpctestadmin',
scope => 'one',
changes_hr => $changes_hr,
filter_hr => $filter_hr,
target_hr => $target_hr,
userPassword
TODO
sambaNTPassword
TODO
sambaLMPassword
TODO
sambaPasswordHistory
TODO
sambaPwdLastSet
TODO
member
TODO
DIAGNOSTICS
TODO
CONFIGURATION AND ENVIRONMENT
TODO
DEPENDENCIES
Carp Class:Std CipUX CipUX::Storage Data::Dumper Date::Manip Log::Log4perl Readonly
INCOMPATIBILITIES
Not known.
BUGS AND LIMITATIONS
Not known.
SEE ALSO
See the CipUX web page and the manual at <http://www.cipux.org>
See the mailing list http://sympa.cipworx.org/wws/info/cipux-devel <http://sympa.cipworx.org/wws/info/cipux-devel>
AUTHOR
Christian Kuelker <christian.kuelker@cipworx.org>
LICENSE AND COPYRIGHT
Copyright (C) 2007 - 2009 by Christian Kuelker
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, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
perl v5.12.3 2011-05-05 CipUX::Object::Action::Attribute::Change(3pm)