Hello all;
I've been having trouble completing a script (bash) because I can't get past the issue of finding a line in a file. For example, I have a file like this:
ddmmmyyyy Lon Lat
24may2003 -100.0 24.1
25may2003 -100.1 24.0
28may2003 -99.5 23.2
....etc... (4 Replies)
Hi,
When we have a failure, sometimes we just step restart the job from the next step. Later when we open the log for analysis of the failure, it is becoming difficult to go to the failure part.
For eg., if it is a 1000 line log, the failure may be at 500th line. so wat i want to do is, grep... (6 Replies)
Hello! i have a text file.. which contains the data as follows
i want to merge the declarations lines pertaining to one datatype in to a single line as follows
i've searched the forum for help.. but couldn't find much help.. how can i do this?? (1 Reply)
Hi,
I'm running a DB query which returns names of people and writes it in a text file as shown below:
Carey, Jim; Cena, John
Cena, John
Sen, Tim; Burt, Terrence
Lock, Jessey; Carey, Jim
Norris, Chuck; Lee, Bruce
Rock, Dwayne; Lee, Bruce
I want to use awk and get all the names... (9 Replies)
Hi,
I am able to get next line if it is matching a particular pattern. But i need a way to skip if next line also matches same pattern..
For example:
No Records
No Records
Records found
got it
Records found
Now i want to find 'Records found' after 'No Records' pattern matches..
... (5 Replies)
I am trying to Join all the lines matching similar pattern.
Example ;
I wanted to join all the lines which has sam to a single line.
In next line, i wanted to have all the lines with jones to a single line....etc
> cat sample.txt
sam 2012/11/23
sam 2012/12/5
sam 2012/12/5
jones... (2 Replies)
Hi guys !
I generated the power set of the set S={a,b,c} using crunch:
crunch 1 3 abc
and get the 39 possible subsets:
a
b
c
aa
ab
ac
ba
bb
bc
ca
cb
cc
… (2 Replies)
Hi Folks,
I have a big file that looks like below
==========
kjhjl
kjlklkkhcgflj
fgf
==========
xsww23edc
ccdde3rfv
ceerfcc
vff4
==========
zaq12wsx
xsw23edc
==========
========== (3 Replies)
Discussion started by: jayadanabalan
3 Replies
LEARN ABOUT DEBIAN
www::freshmeat
WWW::Freshmeat(3pm) User Contributed Perl Documentation WWW::Freshmeat(3pm)NAME
WWW::Freshmeat - automates usage of Freshmeat.net
VERSION
Version 0.22
SYNOPSIS
use WWW::Freshmeat;
my $fm = WWW::Freshmeat->new(token=>'freshmeat_token');
my $project = $fm->retrieve_project('project_id');
foreach my $p ( @projects, $project ) {
print $p->name(), "
";
print $p->version(), "
";
print $p->description(), "
";
}
DESCRIPTION
"WWW::Freshmeat" derives from "LWP::UserAgent", so it accepts all the methods that "LWP::UserAgent" does, notably "timeout", "useragent",
"env_proxy"...
Methods
retrieve_project STRING
Query the freshmeat.net site for the project STRING (should be the Freshmeat ID of the requested project) and returns a
"WWW::Freshmeat::Project" object or undef if the project entry cannot be found.
project_from_xml STRING
Receives Freshmeat project XML record and returns a "WWW::Freshmeat::Project" object or undef if the project entry cannot be found.
redir_url STRING
Receives URL and returns URL which it redirects to.
SEE ALSO
LWP::UserAgent.
AUTHOR
Cedric Bouvier, "<cbouvi at cpan.org>". Alexandr Ciornii.
BUGS
Please report any bugs or feature requests to "bug-www-freshmeat at rt.cpan.org", or through the web interface at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Freshmeat <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Freshmeat>. I will be
notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc WWW::Freshmeat
You can also look for information at:
o AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/WWW-Freshmeat <http://annocpan.org/dist/WWW-Freshmeat>
o CPAN Ratings
http://cpanratings.perl.org/d/WWW-Freshmeat <http://cpanratings.perl.org/d/WWW-Freshmeat>
o RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Freshmeat <http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-Freshmeat>
o Search CPAN
http://search.cpan.org/dist/WWW-Freshmeat <http://search.cpan.org/dist/WWW-Freshmeat>
ACKNOWLEDGEMENTS COPYRIGHT & LICENSE
Copyright 2006 Cedric Bouvier (version 0.01). Copyright 2009-2012 Alexandr Ciornii.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.14.2 2012-03-05 WWW::Freshmeat(3pm)