No need for a loop or for re-reading inctrl.txt over and over and over again. Just tell grep to read the text to match from registry.txt with the -f switch. And since you aren't using regular expressions, it's safest to specify fixed string matching with -F.
Hi ,
I am trying a script which takes user input userid . I am stuck how to check whether that is a valid user id or not in the audit log files. My code is :
cd $CCP_AUDIT
cat * > /export/home/$USR/l***/files
echo "UserId:\c"
read UserId
#Date Function
echo "DATE : \c"
read xxx
I... (7 Replies)
Hi All,
Reference to my previous post
I need to compare all the lines in the file1 with file2
for this condition if file1 {$3,$5} ==file2 {$3,$5} then grep file2{$1}latest date.
need output in file3
10/04/2008
09/04/2008
09/04/2008
08/04/2008
can anyone suggest me
Thanks... (0 Replies)
Hello All,
I have been reading posts on here for a while, but this is my first post. I have a document in which many sentences appear, and I am piping it through an exterior script which will tag each word in the document with its part of speech (not part of my script, just background). The... (3 Replies)
Hi all,
I have the below script to get input but i cannot get grep to work.
input1.txt
AAAAAAAAG
input2.txt
>gi|184009.1| LEAFY-like |AAAAAAAAGSGGGDHLPY
However, when i use grep -f input1.txt input2.txt
i cannot get any output matches (note that the match is underlined).
Is it... (8 Replies)
:wall:
I have a requirement to search a log file that never rotates for certain values. If I find them I pipe them to a another file. To log file is constanyl being appened with new lines and never rotating Easy so far.
The problem is I dont want to pipe out matches already seen before. ... (3 Replies)
Hello everybody,
I have been searching it, but it seems I am unable to find the correct information, that s why I am asking you guys, hoping somebody get an idea.
Here is my problem :
I want a script to loop until a string is identified in a log file.
Here is the script :
#!/bin/sh... (5 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I need to search through the users home directories for keywords, display them. The code listed below will show... (7 Replies)
Hello -
I am running a script that is outputting to a log. Let call it output.log
I would like to monitor that log until the line "Build Successful" is found.
I think I would need to use the grep command.
How would I do that in a loop?
Thanks
Marty (1 Reply)
Hello,
I have built the following script to check if processes supplied by the argument are running or not.
#!/bin/bash
PROCLIST=$1
PROCESS="0"
ERROR_PROCS=""
IFS='+'
read -ra ADDR <<< "$PROCLIST"
for PROC in "${ADDR}"; do
if ; then
PROCESS=1
... (9 Replies)
Discussion started by: nms
9 Replies
LEARN ABOUT DEBIAN
moose::meta::typeconstraint::registry
Moose::Meta::TypeConstraint::Registry(3pm) User Contributed Perl Documentation Moose::Meta::TypeConstraint::Registry(3pm)NAME
Moose::Meta::TypeConstraint::Registry - registry for type constraints
VERSION
version 2.0603
DESCRIPTION
This class is a registry that maps type constraint names to Moose::Meta::TypeConstraint objects.
Currently, it is only used internally by Moose::Util::TypeConstraints, which creates a single global registry.
INHERITANCE
"Moose::Meta::TypeConstraint::Registry" is a subclass of Class::MOP::Object.
METHODS
Moose::Meta::TypeConstraint::Registry->new(%options)
This creates a new registry object based on the provided %options:
o parent_registry
This is an optional Moose::Meta::TypeConstraint::Registry object.
o type_constraints
This is hash reference of type names to type objects. This is optional. Constraints can be added to the registry after it is
created.
$registry->get_parent_registry
Returns the registry's parent registry, if it has one.
$registry->has_parent_registry
Returns true if the registry has a parent.
$registry->set_parent_registry($registry)
Sets the parent registry.
$registry->get_type_constraint($type_name)
This returns the Moose::Meta::TypeConstraint object from the registry for the given name, if one exists.
$registry->has_type_constraint($type_name)
Returns true if the registry has a type of the given name.
$registry->add_type_constraint($type)
Adds a new Moose::Meta::TypeConstraint object to the registry.
$registry->find_type_constraint($type_name)
This method looks in the current registry for the named type. If the type is not found, then this method will look in the registry's
parent, if it has one.
BUGS
See "BUGS" in Moose for details on reporting bugs.
AUTHOR
Moose is maintained by the Moose Cabal, along with the help of many contributors. See "CABAL" in Moose and "CONTRIBUTORS" in Moose for
details.
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Infinity Interactive, Inc..
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.14.2 2012-06-28 Moose::Meta::TypeConstraint::Registry(3pm)