02-10-2011
Thank you very much mate
Since I am a newbie in programming, I would like to implement this in Perl...Does anybody have any idea how I could do that, or include this awk command in my Perl code???
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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)
Discussion started by: Z0mby
2 Replies
2. Shell Programming and Scripting
Hello All,
I am trying to write a script that will only continue executing my script if a file exits. I know the directory of the file, so its just a matter of seeing if the file exists yet. If the file has not yet been created, I want the script to wait 10 minutes (600 seconds) and try again.... (7 Replies)
Discussion started by: Jose Miguel
7 Replies
3. UNIX for Dummies Questions & Answers
need regular expression matches:
abc11_efg11_123.xml
abc11_123.xml
Thank you
Andy (1 Reply)
Discussion started by: andy2000
1 Replies
4. Linux
Regular expression to extract "y" from "abc/x.y.z" (2 Replies)
Discussion started by: rag84dec
2 Replies
5. Shell Programming and Scripting
Hi,
Example
^www\.+\.host\.com$
I would like to know what the bold parts means.
thanks (2 Replies)
Discussion started by: phamp008
2 Replies
6. Shell Programming and Scripting
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)
Discussion started by: ketkee1985
3 Replies
7. Shell Programming and Scripting
I would like to print 3 lines after a regular expression is found in the logfile. I'm using the following code:
grep -n "$reg_exp" file.txt |while read LINE ;do i=$(echo $LINE |cut -d':' -f1 ) ;sed -n "$i,$(($i+3))p" file.txt ;done
The above code things works fine,but sometimes gives erroneous... (3 Replies)
Discussion started by: joachimshaun
3 Replies
8. Programming
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)
Discussion started by: jessy83
1 Replies
9. UNIX for Advanced & Expert Users
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
10. Shell Programming and Scripting
Dear Help,
Is it possible to continue the loop by going to the next available value, if the 'expected value' is not found. I have a list of values which might not get incremented by fixed value and hence the loop could break and the script could terminate.
Any suggestion is appreciated.
... (1 Reply)
Discussion started by: Indra2011
1 Replies
LEARN ABOUT DEBIAN
perl::critic::exception::configuration::option
Perl::Critic::Exception::Configuration::Option(3pm) User Contributed Perl Documentation Perl::Critic::Exception::Configuration::Option(3pm)
NAME
Perl::Critic::Exception::Configuration::Option - A problem with an option in the Perl::Critic configuration.
DESCRIPTION
A representation of a problem found with an option in the configuration of Perl::Critic, whether from a .perlcriticrc, another profile
file, or command line.
This is an abstract class. It should never be instantiated.
INTERFACE SUPPORT
This is considered to be a public class. Any changes to its interface will go through a deprecation cycle.
METHODS
"option_name()"
The name of the option that was found to be in error.
"option_value()"
The value of the option that was found to be in error.
"message_suffix()"
Any text that should be applied to end of the standard message for this kind of exception.
"message()"
"error()"
Overridden to call "full_message()". I.e. any message string in the superclass is ignored.
"full_message()"
Overridden to turn it into an abstract method to force subclasses to implement it.
SEE ALSO
Perl::Critic::Exception::Configuration::Option::Global Perl::Critic::Exception::Configuration::Option::Policy
AUTHOR
Elliot Shank <perl@galumph.com>
COPYRIGHT
Copyright (c) 2007-2011 Elliot Shank.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license
can be found in the LICENSE file included with this module.
perl v5.14.2 2012-06-07 Perl::Critic::Exception::Configuration::Option(3pm)