12-20-2011
Hey guys thanks all of you.
tried all and the all work.
and I did try to search but did not find the links you provided
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi, this is a pretty intersting problem, I would like to convert a list of words into a concatenated string of words with whitespace between each word.
e.g file list :-
hello
how
are
you
today
convert into
hello how are you today.
What command would I use to do this?
Thanks (2 Replies)
Discussion started by: zulander
2 Replies
2. Shell Programming and Scripting
Hi All
I have a script which has produced a list, I have used 'sed' to number my list, but i want to list at end of line with the first line starting at zero (0) and brackets round it
ie
My List i want
Hello (0)
this (1)
day (2)
can (3)
be (4)
sed '/./=' filename | sed '/./N; s/\n/) /'... (5 Replies)
Discussion started by: chassis
5 Replies
3. Shell Programming and Scripting
Hello,
I have a logfile which is in this format:
1211667249500#3265
1211667266687#2875
1211667270781#1828
Is there a way to read the logfile line by line every time I execute the code and put the two numbers in the line in two separate variables?
Something like:
1211667249500#3265... (7 Replies)
Discussion started by: dejavu88
7 Replies
4. Shell Programming and Scripting
I know this has been asked before but I just can't parse the syntax as explained. I have a set of files that has user information spread out over two lines that I wish to merge into one:
User1NameLast User1NameFirst User1Address
E-Mail:User1email
User2NameLast User2NameFirst User2Address... (11 Replies)
Discussion started by: walkerwheeler
11 Replies
5. Shell Programming and Scripting
Hello folks
I have a txt file of information about journal articles from different fields. I need to convert this information into a format that is easier for computers to manipulate for some research that I'm doing on how articles are cited. The file has some header information and then details... (8 Replies)
Discussion started by: ksk
8 Replies
6. Shell Programming and Scripting
#cat file
aa
bb
cc
dd
ee
77
dd
gg
xx
I want to get: when VAR="zzz D" get below out put (7 Replies)
Discussion started by: yanglei_fage
7 Replies
7. Shell Programming and Scripting
Hello,
Can somone help with this command please?
I have this output pattern in a file. I use a simple awk command to
print each field separated by comma. For example I use this to get the first
awk -F, "{ print $1 }"
"ABC=abcdefg,CDF=mnqrst,GGG=hrvyess"
issue:
What I... (7 Replies)
Discussion started by: mnassiri
7 Replies
8. Shell Programming and Scripting
Dear Unix Experts :),
Below is a small section of a large file with the following list:
1. Starts with string " interest" as the heading
2. Followed by a list of activities
3. Ends with a blank line before starting with another different list.
E.g.
Sporting interest
football... (13 Replies)
Discussion started by: gjackson123
13 Replies
9. Shell Programming and Scripting
Hi,
I am running a script sample.sh in bash environment .In the script i am using sed and awk commands which when executed individually from terminal they are getting executed normally but when i give these sed and awk commands in the script it is giving the below errors :-
./sample.sh: line... (12 Replies)
Discussion started by: satishmallidi
12 Replies
10. Shell Programming and Scripting
All, I appreciate any help you can offer here as this is well beyond my grasp of awk/sed...
I have an input file similar to:
&LOG
&LOG Part: "@DB/TC10000021855/--F"
&LOG
&LOG
&LOG Part: "@DB/TC10000021852/--F"
&LOG Cloning_Action: RETAIN
&LOG Part: "@DB/TCCP000010713/--A"
&LOG
&LOG... (5 Replies)
Discussion started by: KarmaPoliceT2
5 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)