12-20-2010
Hello Aia,
I would like to thank you very much for your interest.
it works fine with me but now, I want RE to match "Serial0" or "Serial0/0" or "Serial0/0/0".
could you please help me to make this RE?
Thanks in advance,
Ahmed
10 More Discussions You Might Find Interesting
1. Email Antispam Techniques and Email Filtering
attempt to filter "dsl..pacbell.net
. . .any pointers?
/etc/procmailrc
# attempt at egrep regular expression to match
# adsl-63-199-245-128.dsl.snd g02.pacbell.net
VERBOSE = yes
:0
* ^Received:.*dsl+\.+\.pacbell+\.net
{
LOG="(PacBell DSL) "
:0
/zzPacbellDSL
}
VERBOSE = no... (0 Replies)
Discussion started by: jones
0 Replies
2. Linux
Regular expression to extract "y" from "abc/x.y.z" (2 Replies)
Discussion started by: rag84dec
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I'm struggling with a regex that would match a 'b' that follows an 'a' and is at the end of a string of non-white characters. For example:
Line 1: aba abab b abb aab bab baa
I can find the right strings but I'm lacking knowledge of how to "discard" the bits that precede bs.... (2 Replies)
Discussion started by: machinogodzilla
2 Replies
4. Shell Programming and Scripting
I have 2000 files named like "file-fr0000.log", "file-fr1999.log"...
I wanna generate the file names automatically in the following c shell script:
set fr = 0
while ($fr <= 1999)
grep "ENERGY" file-fr$fr.log > data.dat
@ fr = ( $fr + 1 )
end
The above will generate file names... (3 Replies)
Discussion started by: rockytodd
3 Replies
5. Shell Programming and Scripting
I have a file that contains the 2 following lines (from /proc/mounts)
/dev/sdc1 /mnt/backup2 xfs rw,relatime,attr2,noquota 0 0
/dev/sdb1 /mnt/backup xfs rw,relatime,attr2,noquota 0 0
I need to match the string in the second column exactly so that only one result is returned, e.g.
> grep... (2 Replies)
Discussion started by: jelloir
2 Replies
6. Shell Programming and Scripting
logs:
"/home/abc/public_html/index.php"
"/home/abc/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
"/home/xyz/public_html/index.php"
how to use "cut" or "awk" or "sed" to get the following result:
abc
abc
xyz
xyz
xyz (8 Replies)
Discussion started by: timmywong
8 Replies
7. Shell Programming and Scripting
Hi,
I'm dealing with an issue and losing a lot of hours figuring out how i would solve this.
I have an input file which looks like this:
('BLABLA +200-GRS','Serviço ','TarifaçãoServiço','wap.bla.us.0000000121',2985,0,55,' de conversão em escada','Dia','Domingos')
('BLABLA +200-GRR','Serviço... (6 Replies)
Discussion started by: poliver
6 Replies
8. Shell Programming and Scripting
Hello.
Following recommendations for one of my threads, this is working perfectly :
#!/bin/bash
CNT=$( grep -c -e "some text 1" -e "some text 2" -e "some text 3" "/tmp/log_file.txt" )
Now I need a grep success for some thing like :
#!/bin/bash
CNT=$( grep -c -e "some text_1... (4 Replies)
Discussion started by: jcdole
4 Replies
9. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
10. Shell Programming and Scripting
I need to find two matches in the output from ps. I am searching with ps -ef |grep mysql for:
my.cnf
/bin/sh /usr/bin/mysqld_safe --defaults-file=/data/mysql/master/agis_core/etc/my.cnf
after this match I want to search back and match the hostname which is x number of lines back, above the... (2 Replies)
Discussion started by: bash_in_my_head
2 Replies
LEARN ABOUT DEBIAN
pod::wsdl::method
Pod::WSDL::Method(3pm) User Contributed Perl Documentation Pod::WSDL::Method(3pm)
NAME
Pod::WSDL::Method - Represents a method in Pod::WSDL (internal use only)
SYNOPSIS
use Pod::WSDL::Method;
my $m = new Pod::WSDL::Method(name => 'mySub', writer => 'myWriter', doc => new Pod::WSDL::Doc($docStr), return => new Pod::WSDL::Return($retStr));
DESCRIPTION
This module is used internally by Pod::WSDL. It is unlikely that you have to interact directly with it. If that is the case, take a look at
the code, it is rather simple.
METHODS
new
Instantiates a new Pod::WSDL::Method.
Parameters
o name - name of the method, mandatory
o doc - a Pod::WSDL::Doc object, can be ommitted, use method doc later
o return - a Pod::WSDL::Return object, can be ommitted, use method return later
o params - ref to array of Pod::WSDL::Param objects, can be ommitted, use addParam() later
o faults - ref to array of Pod::WSDL::Fault objects, can be ommitted, use addFault() later
o oneway - if true, method is a one way operation
o writer - XML::Writer-Object for output, mandatory
addParam
Add a Pod::WSDL::Param object to Pod::WSDL::Method
addFault
Add a Pod::WSDL::Fault object to Pod::WSDL::Method
return
Get or Set the Pod::WSDL::Return object for Pod::WSDL::Method
doc
Get or Set the Pod::WSDL::Doc object for Pod::WSDL::Method
requestName
Get name for request in XML output
responseName
Get name for response in XML output
writeBindingOperation
Write operation child for binding element in XML output
writeMessages
Write message elements in XML output
writePortTypeOperation
Write operation child for porttype element in XML output
EXTERNAL DEPENDENCIES
[none]
EXAMPLES
see Pod::WSDL
BUGS
see Pod::WSDL
TODO
see Pod::WSDL
SEE ALSO
Pod::WSDL :-)
AUTHOR
Tarek Ahmed, <bloerch -the character every email address contains- oelbsk.org>
COPYRIGHT AND LICENSE
Copyright (C) 2006 by Tarek Ahmed
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or,
at your option, any later version of Perl 5 you may have available.
perl v5.10.1 2010-12-18 Pod::WSDL::Method(3pm)