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 HPUX
show_object
show object(1m) show object(1m)
NAME
show object - Displays attribute information about the specified object entry
SYNOPSIS
cdscp show object object-name [attribute-name] [with attribute-name = attribute-value]
ARGUMENTS
The full name of a specific object entry. The last simple name can contain wildcard characters. The name of a particular attribute; see
Description for valid attribute names. The value of a particular attribute.
DESCRIPTION
The show object command displays the names and values of the attributes specified in attribute-name. You can use a combination of
attributes in a single command. Use a space to separate multiple attributes. You can use a with attribute-name = attribute-value clause to
limit output only to object entries whose attributes have values equal to the specified values. If you do not supply any attributes, the
command displays all attributes and their values. In addition to the following attributes, any application-defined attributes that might
exist will be included in the output of this command. The following is a description of object entry attributes: Specifies the class to
which an object belongs. Contains the version number of the object's class. This allows applications to build in compatibility with
entries created by earlier versions. Specifies the creation timestamp (CTS) of this object entry. Specifies a unique identifier for the
object being referenced. Specifies the timestamp of the most recent update to an attribute of the object entry.
Privilege Required
You must have read permission to the object entry. If you specify a wildcard object entry name, you also need read permission to the
directory that stores the object entry.
NOTE
This command is replaced at Revision 1.1 by the dcecp command and may not be provided in future releases of DCE.
EXAMPLE
The following command lists all the attributes and their values of the object entry /.:/sales/east/floor1cp. cdscp> show object
/.:/sales/east/floor1cp
SHOW
OBJECT /.../abc.com/sales/floor1cp
AT 1991-10-15-15:53:07
CDS_CTS = 1991-10-15-19:53:03.00000003/08-00-2b-1c-8f-1f
CDS_UTS = 1991-10-15-19:53:03.00000006/08-00-2b-1c-8f-1f
RELATED INFORMATION
Commands: add object(1m), create object(1m), delete object(1m), list object(1m), remove object(1m), set object(1m)
show object(1m)