8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I want to implement something like this:
if( keyword1 exists)
then
check if(keyword2 exists in the same line)
then replace keyword 2 with New_Keyword
else
Add New_Keyword at the end of line
end if
eg:
Check for Keyword JUNGLE and add/replace... (7 Replies)
Discussion started by: dashing201
7 Replies
2. Shell Programming and Scripting
Hello,
I have a shell script. I would like to add email the curl output. I'd appreciate if you help. Thanks.
#!/bin/bash
while read -r URL ; do if ] ; then echo "keyword changed!!!!"|mail -s "$URL Alert!!!!" info@test.com; fi;done</root/m/url.txt
. (3 Replies)
Discussion started by: tara123
3 Replies
3. Shell Programming and Scripting
Hello,
I have a file with a keyword ccas i want to copy the keyword once in VI and have to paste it in the same file for multiple time,let's say 700 times,i dont know hoe to do it.
Kindly help me on this
Regards
Thelak (2 Replies)
Discussion started by: thelakbe
2 Replies
4. Solaris
Hi,
This is my first post.
Please help me.
I wanted to find a particular key word in the entire system not in the filename, it should be in the file content.
The output should display me...
<The filename>, number of times the keyword is repeated.
like
file1: 2
file2: 4... (3 Replies)
Discussion started by: pointers
3 Replies
5. OS X (Apple)
Hi all,
I am in the process of building a shell script as part of a auditing utility. It will search a specified directory for keywords and output results of the file path, and line number that the word was found on. I built a test script (shown below) that does just this, but egrep apparently... (0 Replies)
Discussion started by: tmcmurtr
0 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
I had a query on the usage of $0 in shells. I would appreciate any assistance in this.
We moved from a sun solaris server to a linux server. I ran 2 different pieces on these servers and in one case, the outputs didnt change and in the other case, the outputs were different. The 2... (3 Replies)
Discussion started by: novice1324
3 Replies
7. Programming
Hello,
What is far keyword in C and for what purpose is it used???
Pls ans.
thanx in advance.
svh (2 Replies)
Discussion started by: svh
2 Replies
8. Shell Programming and Scripting
Hi,
I want to know all the keywords in perl as well as their usage. plz provide if u have any URL regarding this.
In my perl script first 2 lines are
1)use DBI;
2)require "hello.pl";
what is the use these two statements.
i thought the second one may be like include .
Thanks in advance.... (1 Reply)
Discussion started by: sarwan
1 Replies
MooseX::Declare::Syntax::Keyword::Role(3pm) User Contributed Perl Documentation MooseX::Declare::Syntax::Keyword::Role(3pm)
NAME
MooseX::Declare::Syntax::Keyword::Role - Role declarations
METHODS
generate_export
CodeRef Object->generate_export ()
Returns a closure with a call to "make_anon_metaclass".
CONSUMES
o MooseX::Declare::Syntax::MooseSetup
o MooseX::Declare::Syntax::RoleApplication
MODIFIED METHODS
imported_moose_symbols
List Object->imported_moose_symbols ()
Extends the existing "imported_moose_symbols" in MooseX::Declare::Syntax::MooseSetup with "requires", "extends", "has", "inner" and
"super".
import_symbols_from
Str Object->import_symbols_from ()
Will return Moose::Role instead of the default Moose.
make_anon_metaclass
Object Object->make_anon_metaclass ()
This will return an anonymous instance of Moose::Meta::Role.
SEE ALSO
o MooseX::Declare
o MooseX::Declare::Syntax::Keyword::Class
o MooseX::Declare::Syntax::RoleApplication
o MooseX::Declare::Syntax::MooseSetup
AUTHOR
Florian Ragwitz <rafl@debian.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2008 by Florian Ragwitz.
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.18.2 2013-12-14 MooseX::Declare::Syntax::Keyword::Role(3pm)