Is it possible to combine a regular expression with a aritmetical expression? For example, taking a 8-numbers caracter sequece and casting each output of a grep, comparing to a constant.
THX! (2 Replies)
HI All,
I want to list a file with the below format :
testfile_nnnnn.xxxx
where n and x can be any digit 0-9. n repeats 5 times and x 4 times...
I tried with something like below:
ls -l testfile_/\{5\}/*
to start with but its not working. Please could anyone help?
Thanks
D (1 Reply)
hi all,
i have a text file with below content
...............................
...............................
...............................
...............................
%%Page: (4) 4
%%PageBoundingBox: 34 -30 584 831
%%BeginPageSetup
%%BeginFeature: *PageSize A4
595 842... (7 Replies)
Hi,
How can I use a regular expression that will find only errors of ORA-00600 that does not contain 12333 if the first brackets:
example text:
ORA-02999 : test message, ignore me
ORA-00600: dddd sss
ORA-00600: dddd sss sas
ORA-00600: internal error code, arguments: , , , , , ... (4 Replies)
I need a perl substitution to remove only the comment in the line . That line may have '#' with in double quotes .I used the following ,
s/(^.*\".+?#.+?\".+?)(#.*)/$1/g
It works for ,
print " not a comment # not a comment " . "not a comment # not a comment" ; # It is a comment
... (3 Replies)
CA_RELEASE has a value of 6. I need to check if that this is a numeric value. if not error.
source $CA_VERSION_DATA
if * ]
then
echo "CA_RELESE $CA_RELEASE is invalid"
exit -1
fi
+ source /etc/ncgl/ca_version_data
++ CA_PRODUCT_ID=samxts
++ CA_RELEASE=6
++ CA_WEEK_NO=7
++... (3 Replies)
Hi all,
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
while (<DESTINATION_FILE>)
{
# print... (1 Reply)
Hello All,
I'm trying to extract the lines between two consecutive elements of an array from a file.
My array looks like:
problem_arr=(PRS111 PRS213 PRS234)
j=0
while } ]
do
k=`expr $j + 1`
sed -n "/${problem_arr}/,/${problem_arr}/p" problemid.txt
---some operation goes... (11 Replies)
Discussion started by: InduInduIndu
11 Replies
LEARN ABOUT DEBIAN
net::google::code::atomparser
Net::Google::Code::AtomParser(3pm) User Contributed Perl Documentation Net::Google::Code::AtomParser(3pm)NAME
Net::Google::Code::AtomParser - AtomParser with a parsing method for gcode
DESCRIPTION INTERFACE
new
parse( $xml_content )
return( $feed, $entries ), $feed is a hashref like {
'title' => 'Issue updates for project net-google-code on Google Code',
'id' => 'http://code.google.com/feeds/p/net-google-code/issueupdates/basic',
'updated' => '2009-06-12T05:55:48Z' }
$entries is an arrayref like [
{
'content' => '<pre>second comment
</pre>
',
'name' => 'sunnavy',
'title' => 'Update 2 to issue 22 ("for sd test")',
'id' => 'http://code.google.com/feeds/p/net-google-code/issueupdates/basic/22/2',
'updated' => '2009-06-12T05:55:48Z'
},
{
'content' => '<pre>first comment
</pre>
',
'name' => 'sunnavy',
'title' => 'Update 1 to issue 22 ("for sd test")',
'id' => 'http://code.google.com/feeds/p/net-google-code/issueupdates/basic/22/1',
'updated' => '2009-06-12T05:55:22Z'
}, ]
AUTHOR
sunnavy "<sunnavy@bestpractical.com>"
LICENCE AND COPYRIGHT
Copyright 2008-2010 Best Practical Solutions.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2010-01-29 Net::Google::Code::AtomParser(3pm)