11-14-2016
OK, that's the input you have. Now, show the output you want.
I'm not sure what the error you posted has to do with anything, is that a log entry or a perl error, and what do you want done with it?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Can anyone help me to find regular expression for the following in Perl?
"The string can only contain lower case letters (a-z) and no more than one of any letter."
For example: "table" is accepted, whether "dude" is not.
I have coded like this:
$str = "table";
if ($str =~ m/\b()\b/) {... (4 Replies)
Discussion started by: evilfreakz
4 Replies
2. Shell Programming and Scripting
I have got numbers like
l255677
l376039
l188144
l340482
l440700
l254113
to match the numbers starting with '13' what would be the regex
=~/13(.*)/ =======>This is not working ....
But for user123,user657
regex =~/user(.*)/ ========>works
Thanks for help..!! (7 Replies)
Discussion started by: trina_1
7 Replies
3. Shell Programming and Scripting
I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly:
if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I get the following when I cat a file *.log
xxxxx
=====
dasdas gwdgsg fdsagfsag agsdfag
=====
random data
=====
My output should look like :
If the random data after the 2nd ==== is null then OK should be printed else
the random data should be printed.
How do I go about this... (5 Replies)
Discussion started by: manutd
5 Replies
5. Programming
HI,
I'm new to perl and need simple regex for reading a file using my perl script.
The text file reads as -
filename=/pot/uio/current/myremificates.txt
certificates=/pot/uio/current/userdir/conf/user/gamma/settings/security/... (3 Replies)
Discussion started by: jhamaks
3 Replies
6. Programming
Hi Guys
I have the following regex
$OSRELEASE = $1 if ($output =~ /(Mac OS X (Server )?10.\d)/);
output is currently
Mac OS X 10.7.5
when the introduction of Mac 10.8 output changes to
OS X 10.8.2
they have dropped the Mac bit so i changed the regex to be (2 Replies)
Discussion started by: ab52
2 Replies
7. Programming
Hello folks,
Looking for a quick help on regex in my perl script.
here's the string i want to parse and get the 2nd field out of it.
$str = " 2013-08-07 12:29 Beta ACTIVE";
I want to extract 'Beta' out of this string. This string will keep on changing... (2 Replies)
Discussion started by: jhamaks
2 Replies
8. Shell Programming and Scripting
Could anyone please make me understand how the ?= works below ..
After executing this I am getting the same output.
$string="I love chocolate.";
$string =~ s/chocolate(?= ice)/vanilla/;
print "$string\n"; (2 Replies)
Discussion started by: scriptscript
2 Replies
9. UNIX for Advanced & Expert Users
Hi all,
i have the following line in a record file :
retenu=non
demande=non
script=#vtbackup /path=/save/backup/demande
position=140+70
and i want to use Perl regex to have the following output
key : "retenu" value : "non"
key : "demande" value "non"
key : "script" value :... (2 Replies)
Discussion started by: Fundix
2 Replies
10. Shell Programming and Scripting
I am not a big expert in regex and have just little understanding of that language.
Could you help me to understand the regular Perl expression:
^(?!if\b|else\b|while\b|)(?:+?\s+){1,6}(+\s*)\(*\) *?(?:^*;?+){0,10}\{
------
This is regex to select functions from a C/C++ source and defined in... (2 Replies)
Discussion started by: alex_5161
2 Replies
LEARN ABOUT DEBIAN
svn::web::log
SVN::Web::Log(3pm) User Contributed Perl Documentation SVN::Web::Log(3pm)
NAME
SVN::Web::Log - SVN::Web action to show log messages for a repository path
SYNOPSIS
In config.yaml
actions:
...
log:
class: SVN::Web::Log
action_menu:
show:
- file
- directory
link_text: (view revision log)
...
DESCRIPTION
Shows log messages (in reverse order) for interesting revisions of a given file or directory in the repository.
OPTIONS
limit The number of log entries to retrieve. The default is 20.
rev The repository revision to start with. The default is the repository's youngest revision.
TEMPLATE VARIABLES
context Either "directory" or "file".
at_head A boolean value, true if the log starts with the most recent revision.
at_oldest
A boolean value, true if the list of revisions ("revs") includes the oldest revision for this path.
isdir A boolean value, true if the given path is a directory.
rev The repository revision that the log starts with.
revs A list of hashes. Each entry corresponds to a particular repository revision, and has the following keys.
rev The repository revision this entry is for.
youngest_rev
The repository's youngest revision.
author The author of this change.
date The date of this change, formatted according to "Time and date formatting" in SVN::Web.
msg The log message for this change.
paths A list of hashes containing information about the paths that were changed with this commit. Each hash key is the path name
that was modified with this commit. Each key is a hash ref of extra information about the change to this path. These hash
refs have the following keys.
action A single letter indicating the action that was carried out on the path. A file was either added "A", modified "M",
replaced "R", or deleted "D".
copyfrom
If the file was copied from another file then this is the path of the source of the copy.
copyfromrev
If the file was copied from another file then this is the revision of the file that it was copied from.
limit The value of the "limit" parameter.
EXCEPTIONS
None.
COPYRIGHT
Copyright 2003-2004 by Chia-liang Kao "<clkao@clkao.org>".
Copyright 2005-2007 by Nik Clayton "<nik@FreeBSD.org>".
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See <http://www.perl.com/perl/misc/Artistic.html>
perl v5.14.2 2012-06-11 SVN::Web::Log(3pm)