06-02-2010
Hi ,
Sorry i dont want that it will give only Fatal line but i want the id line also like
id =543523 which is in the seperate line
my total output should be like
Fatal Error for input record 25 is id = 543523.
Please help
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to be able to list all the names in a file which begin with a capital letter, but I don't want it to list words that begin a new sentence. Is there any way round this?
Thanks for your help. (1 Reply)
Discussion started by: kev269
1 Replies
2. Shell Programming and Scripting
Hi All,
I am new to UNIX and shell scripts and also new to this forum.
I need a script to find all the files in a directory that contain any of the strings present in another file.
Please provide me the script or if you could provide pointers to any link in this forum it would be helpful.... (4 Replies)
Discussion started by: tsanthosh
4 Replies
3. Shell Programming and Scripting
hello,
i 'd like your help about a bash script which:
1. finds inside the html file (it is attached with my post) the code number of the Latest Stable Kernel,
2.finds the link which leads to the download location of the Latest Stable Kernel version,
(the right link should lead to the file... (3 Replies)
Discussion started by: alex83
3 Replies
4. Shell Programming and Scripting
Hello,
I have a complex problem. I have a file in which words have been joined together:
Theboy ranslowly
I want to be able to correctly split the words using a lookup file in which all the words occur:
the
boy
ran
slowly
slow
put
child
ly
The lookup file which is meant for look up... (21 Replies)
Discussion started by: gimley
21 Replies
5. Shell Programming and Scripting
Dear all,
I am working with names and I have a large file of names in which some words are written together (upto 4 or 5) and their corresponding single forms are also present in the word-list.
An example would make this clear
annamarie
mariechristine
johnsmith
johnjoseph smith
john
smith... (8 Replies)
Discussion started by: gimley
8 Replies
6. Shell Programming and Scripting
Hi all,
I have trouble in finding the multiple word in .txt file. Please help me with any solution.
I have 10,000 .txt files and in each file i have to search specific word but more than one, like
(data, machine learning, clustering) and all these keywords should be case insensitive because... (3 Replies)
Discussion started by: XXLMMN
3 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I have a requirement like i have to find out files and remove them on a daily basis.
The files are generated as
abc_jnfn_201404230004.csv
abc_jnfo_201404230004.csv
abc_jnfp_201404230004.csv
abc_jnfq_201404230004.csv
abd_jnfn_201404220004.csv
abe_jnfn_201404220004.csv
i want to... (1 Reply)
Discussion started by: Mohammed_Tabish
1 Replies
8. Shell Programming and Scripting
Hi ,
I need to count the number of errors associated with the two words occurring in the file. It's about counting the occurrences of the word "error" for where is the word "index.js". As such the command should look like. Please kindly help. I was trying: grep "error" log.txt | wc -l (1 Reply)
Discussion started by: jmarx
1 Replies
9. UNIX for Dummies Questions & Answers
Hello,
I would like to change my setting in a file to the setting that user input.
For example, by default it is
ONBOOT=ON
When user key in "YES", it would be
ONBOOT=YES
--------------
This code only adds in the entire user input, but didn't replace it.
How do i go about... (5 Replies)
Discussion started by: malfolozy
5 Replies
10. Shell Programming and Scripting
Hi All,
I need one help to replace particular words in file based on if finds another words in that file .
i.e.
my self is peter@king.
i am staying at north sydney.
we all are peter@king.
How to replace peter to sham if it finds @king in any line of that file.
Please help me... (8 Replies)
Discussion started by: Rajib Podder
8 Replies
LEARN ABOUT CENTOS
perl::critic::policy::modules::prohibitevilmodules
Perl::Critic::Policy::Modules::ProhibitEvilModules(3) User Contributed Perl Documentation Perl::Critic::Policy::Modules::ProhibitEvilModules(3)
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.16.3 2014-06-09 Perl::Critic::Policy::Modules::ProhibitEvilModules(3)