08-27-2013
By default, if you don't put { ... } after an expression, it assumes it should do { print }.
If you do { next } instead, it will skip to the next line without printing and start checking your expressions from the beginning instead.
This User Gave Thanks to Corona688 For This Post:
8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello friends,
I have a problem in printing an array..
Example if my array line contains 4 elements like following
line=0002 , line=202200, line=200002, line= 300313
Now one = sprintf line line line line will concatenate my whole array to one.
But I am not sure about the... (7 Replies)
Discussion started by: user_prady
7 Replies
2. Shell Programming and Scripting
Hello Friends,
I have a txt file like below
//*Init Start
Reg(read,12'h42E,16'h0000);
Nop(5628.5);
//*Init End
//*Main Start
Reg(read,12'h42E,16'h0000);
Nop(5628.5);
//*Main End
I want to calculate the values between //* Init Start & //* Init End
And //*Main Start & //*Main... (5 Replies)
Discussion started by: user_prady
5 Replies
3. Shell Programming and Scripting
Hi Friends,
I got stuck where to start with ..
I ve a input file like below. where I want to compare write data with my read data .. The problem is that the read data should be compared with the lastest write data on that address.
Note- Both write data & read data are in the same... (8 Replies)
Discussion started by: user_prady
8 Replies
4. Shell Programming and Scripting
I want to print lines that have "IND" or "ind" or nothing in field 2 or 3
file:
output needed:
Code i wrote:
nawk -F"," '{if(tolower($2||$3) ~"ind"||"")print}' file
Help is appreciated (3 Replies)
Discussion started by: pinnacle
3 Replies
5. Shell Programming and Scripting
In one data file i have values like this
a b c 1 2
e f g 2 3
i j k 3 5
I need to sum up the last 2 columns and make a data file...How i can do that.
a b c 1 2
e f g 2 3
i j k 3 5... (8 Replies)
Discussion started by: bobprabhu
8 Replies
6. UNIX for Dummies Questions & Answers
I have task to find out the min,max, average value of each service for example i searched for " StatementService "
$awk '/VST.*StatementService:/{print $3,$4,$19,$22,$25}' performance.log > smp.log
$cat smp.log
amexgtv VST: : StatementService:1860 StatementService:getCardReference:0... (3 Replies)
Discussion started by: senthil.ak
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
My file has 2 fields and millions of lines.
variableStep chrom=Uextra span=25
201 0.5952
226 0.330693
251 0.121004
276 0.0736858
301 0.0646982
326 0.0736858
401 0.2952
426 0.230693
451 0.221004
476 0.2736858
Each field either has a... (6 Replies)
Discussion started by: wyarosh
6 Replies
8. Shell Programming and Scripting
Hi friends, I am having 2 files, I just want to compare 2 files each containing 2 columns 1st column is lat, and 2nd column is long, if anyone can understand below logic please help me in writing script with awk.. here each field of file2 needs to be compared with std_file
main
counter=0... (1 Reply)
Discussion started by: Akshay Hegde
1 Replies
LEARN ABOUT DEBIAN
perl::critic::policy::modules::prohibitevilmodules
Perl::Critic::Policy::Modules::ProhibitEvilModules(3pm) User Contributed Perl DocumentationPerl::Critic::Policy::Modules::ProhibitEvilModules(3pm)
NAME
Perl::Critic::Policy::Modules::ProhibitEvilModules - Ban modules that aren't blessed by your shop.
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
Use this policy if you wish to prohibit the use of specific modules. These may be modules that you feel are deprecated, buggy,
unsupported, insecure, or just don't like.
CONFIGURATION
The set of prohibited modules is configurable via the "modules" and "modules_file" options.
The value of "modules" should be a string of space-delimited, fully qualified module names and/or regular expressions. An example of
prohibiting two specific modules in a .perlcriticrc file:
[Modules::ProhibitEvilModules]
modules = Getopt::Std Autoload
Regular expressions are identified by values beginning and ending with slashes. Any module with a name that matches "m/pattern/" will be
forbidden. For example:
[Modules::ProhibitEvilModules]
modules = /Acme::/
would cause all modules that match "m/Acme::/" to be forbidden.
In addition, you can override the default message ("Prohibited module "module" used") with your own, in order to give suggestions for
alternative action. To do so, put your message in curly braces after the module name or regular expression. Like this:
[Modules::ProhibitEvilModules]
modules = Fatal {Found use of Fatal. Use autodie instead} /Acme::/ {We don't use joke modules}
Similarly, the "modules_file" option gives the name of a file containing specifications for prohibited modules. Only one module
specification is allowed per line and comments start with an octothorp and run to end of line; no curly braces are necessary for delimiting
messages:
Evil # Prohibit the "Evil" module and use the default message.
# Prohibit the "Fatal" module and give a replacement message.
Fatal Found use of Fatal. Use autodie instead.
# Use a regular expression.
/Acme::/ We don't use joke modules.
By default, the modules that have been deprecated by the Perl 5 Porters are reported; at the time of writing these are Class::ISA,
Pod::Plainer, Shell, and Switch. Specifying a value for the "modules" option will override this.
NOTES
Note that this policy doesn't apply to pragmas.
AUTHOR
Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>
COPYRIGHT
Copyright (c) 2005-2011 Imaginative Software Systems. All rights reserved.
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::Policy::Modules::ProhibitEvilModules(3pm)