03-25-2010
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a situation where I am reading a text file line-by-line. Those lines of data contain comma separated fields of data. However, each line can vary in the number of fields it can contain. What I need to do is parse apart each line and write each field of data found (left to right) into a file.... (7 Replies)
Discussion started by: 2reperry
7 Replies
2. Shell Programming and Scripting
My input file:
data_5 Ali 422 2.00E-45 102/253 140/253 24
data_3 Abu 202 60.00E-45 12/23 140/23 28
data_1 Ahmad 256 7.00E-45 120/235 140/235 22
data_4 Aman 365 8.00E-45 15/65 140/65 20
data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies
3. Shell Programming and Scripting
My input:
Data name: ABC001
Data length: 1000
Detail info
Data Direction Start_time End_time Length
1 forward 10 100 90
1 forward 15 200 185
2 reverse 50 500 450
Data name: XFG110
Data length: 100
Detail info
Data Direction Start_time End_time Length
1 forward 50 100 50 ... (11 Replies)
Discussion started by: patrick87
11 Replies
4. Shell Programming and Scripting
Hi , I have a billing CDR file which has repeated lines as indicated below and I need to extract data between two strings (i.e.: <?> and </?>). Eventually, map that information with the corresponding field. I'm new to unix, any help will be greatly appreciated.
Gamini
Input (single line):
!... (3 Replies)
Discussion started by: jaygamini
3 Replies
5. Shell Programming and Scripting
hi,
In a given directory, i need to search for a string (eg:ABCD).
For a given file, i have to extract the text between START and END strings .
I need to extract all the text between START and END and there can be multiple START and END in a file.
Sample:
There is a directort... (3 Replies)
Discussion started by: flamingo_l
3 Replies
6. Shell Programming and Scripting
Hi All,
I need to parse some statistic data from the "measInfo" -eg. 25250000 (as highlighted) and return the result into line by line, and erasing all other unnecessary info/tag.
Thought of starting with grep "measInfoID="25250000" but this only returns 1 line. How do I get all the output... (8 Replies)
Discussion started by: jackma
8 Replies
7. Shell Programming and Scripting
Hello,
I want to extract some informations from a html (website, http://www.energiecontracting.de/7-mitglieder/von-A-Z.php?a_z=B&seite=2 ) file and save those in a predefined format (.csv).. However it seems that the code on that website is kinda messy and I can't find a way to handle it... (5 Replies)
Discussion started by: TehOne
5 Replies
8. Shell Programming and Scripting
I have the following lines in a log file. It would be great if some one can help me to create a new file with the just entries in the below format.
66.150.161.195 HPSAC=Z05
66.150.161.196 HPSAC=A05
That is just extract the IP address and the string DPSAC=its value
66.150.161.195 -... (1 Reply)
Discussion started by: Tuxidow
1 Replies
9. Shell Programming and Scripting
Hi Friends,
I have a bunch of URLs.
Each URL will open up an abstract page.
But, the source contains a link to the main PDF article.
I am looking for a script to do the following task
1. Read input file with URLs.
2. Parse the source and grab all the lines that has the word 'PDF'.... (1 Reply)
Discussion started by: jacobs.smith
1 Replies
10. UNIX for Dummies Questions & Answers
Dear all,
I have a data like below (n of rows=400,000) and I want to extract the rows with certain strings. I use code below. It works if there is not too many strings for example n of strings <5000. while I have 90,000 strings to extract. If I use the egrep code below, I will get error:
... (3 Replies)
Discussion started by: forevertl
3 Replies
LEARN ABOUT DEBIAN
test::pod::no404s
Test::Pod::No404s(3pm) User Contributed Perl Documentation Test::Pod::No404s(3pm)
NAME
Test::Pod::No404s - Checks POD for http 404 links
SYNOPSIS
#!/usr/bin/perl
use strict; use warnings;
use Test::More;
eval "use Test::Pod::No404s";
if ( $@ ) {
plan skip_all => 'Test::Pod::No404s required for testing POD';
} else {
all_pod_files_ok();
}
ABSTRACT
Using this test module will check your POD for any http 404 links.
DESCRIPTION
This module looks for any http(s) links in your POD and verifies that they will not return a 404. It uses LWP::UserAgent for the heavy
lifting, and simply lets you know if it failed to retrieve the document. More specifically, it uses $response->is_error as the "test."
Normally, you wouldn't want this test to be run during end-user installation because they might have no internet! It is HIGHLY recommended
that this be used only for module authors' RELEASE_TESTING phase. To do that, just modify the synopsis to add an env check :)
Methods
all_pod_files_ok( [ @files ] )
This function is what you will usually run. It automatically finds any POD in your distribution and runs checks on them.
Accepts an optional argument: an array of files to check. By default it checks all POD files it can find in the distribution. Every file it
finds is passed to the "pod_file_ok" function.
pod_file_ok( FILENAME, [ TESTNAME ] )
"pod_file_ok()" will okay the test if there is no http(s) links present in the POD or if all links are not an error. Furthermore, if the
POD was malformed as reported by Pod::Simple, the test will fail and not attempt to check the links.
When it fails, "pod_file_ok()" will show any failing links as diagnostics.
The optional second argument TESTNAME is the name of the test. If it is omitted, "pod_file_ok()" chooses a default test name "404 test for
FILENAME".
EXPORT
Automatically exports the two subs.
SEE ALSO
LWP::UserAgent
Pod::Simple
Test::Pod
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Test::Pod::No404s
Websites
o Search CPAN
<http://search.cpan.org/dist/Test-Pod-No404s>
o AnnoCPAN: Annotated CPAN documentation
<http://annocpan.org/dist/Test-Pod-No404s>
o CPAN Ratings
<http://cpanratings.perl.org/d/Test-Pod-No404s>
o CPAN Forum
<http://cpanforum.com/dist/Test-Pod-No404s>
o RT: CPAN's Request Tracker
<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Test-Pod-No404s>
o CPANTS Kwalitee
<http://cpants.perl.org/dist/overview/Test-Pod-No404s>
o CPAN Testers Results
<http://cpantesters.org/distro/T/Test-Pod-No404s.html>
o CPAN Testers Matrix
<http://matrix.cpantesters.org/?dist=Test-Pod-No404s>
o Git Source Code Repository
<http://github.com/apocalypse/perl-test-pod-no404s>
Bugs
Please report any bugs or feature requests to "bug-test-pod-no404s at rt.cpan.org", or through the web interface at
<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Test-Pod-No404s>. I will be notified, and then you'll automatically be notified of
progress on your bug as I make changes.
AUTHOR
Apocalypse <apocal@cpan.org>
Thanks to the author of Test::Pod for the basic framework of this module!
Thanks to the POE guys for finding 404 links in their POD, and was the inspiration for this module.
COPYRIGHT AND LICENSE
Copyright 2010 by Apocalypse
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.10.1 2011-03-05 Test::Pod::No404s(3pm)