Sponsored Content
Top Forums Shell Programming and Scripting AWK print a character many times Post 52943 by dbrundrett on Wednesday 30th of June 2004 10:43:33 AM
Old 06-30-2004
Cheers guys

Thanks for yoru help
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Counting the number of times a character appears

I am looking for a bash command that counts the number of times a character appears in a file. For example "I am a newbie, trying to learn shell script". Then the command counts the number of e and gives them as 4. Also I want one that counts the number of times a character in a string is replaced.... (2 Replies)
Discussion started by: #moveon
2 Replies

2. Shell Programming and Scripting

Replace, insert n times a specific character

How can using Vim, replace one character with another repeating it 10 times? Ex.: Transforming this: 125A986 That: 125##########986 (12 Replies)
Discussion started by: IJNeves
12 Replies

3. Shell Programming and Scripting

read the text file and print the content character by character..

hello all i request you to give the solution for the following problem.. I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print g go goo goog googl google like this Using unix Shell scripting... without using... (1 Reply)
Discussion started by: samupnl
1 Replies

4. Shell Programming and Scripting

How do you print a single quote character in AWK

How do you print out a single quote character in AWK? Using the escape character does not seem to work. {printf "%1$s %2$s%3$s%2$s\n" , "INCLUDE", " \' ", "THIS" } does not work. Any suggestions? (6 Replies)
Discussion started by: cold_Que
6 Replies

5. Shell Programming and Scripting

AWK Print Line If Specific Character Is Matched

Hello, I have a file as such: FFFFFFF6C000000 225280 225240 - - rwxs- FFFFFFFF79C00000 3240 3240 - - rwxs- FFFFFFFF7A000000 4096 4096 - - rwxs- FFFFFFFF7A400000 64 64 ... (3 Replies)
Discussion started by: PointyWombat
3 Replies

6. Shell Programming and Scripting

AWK/SED print if 2nd character in a column is greater than 0

We have an access log where column 8 displays the time in seconds like below: Tj8nQAoNgwsAABov9cIAAAFL - 10.13.131.80 - - (0) - "GET /aaaaa/bbbb/bbbb where column 8 is printed (0). We are trying to find how many entries are there that has column 8 greater than 0. Remember $8 is (0) and not... (5 Replies)
Discussion started by: spacemtn5
5 Replies

7. Shell Programming and Scripting

[AWK script]Counting the character in record and print them in condition

.......... (1 Reply)
Discussion started by: Antonlee
1 Replies

8. Shell Programming and Scripting

awk getline 8 times and if $3 = 8 when subtracted from 1st line,print

I have kind of a strange one here. I have a file of consecutive /24 ip blocks. If there are 8 consecutive ip blocks which represent a /20 then I need to print the first line. I played around and did not get the results I need, especially when considering that the highest $3 will be is 255 and then... (6 Replies)
Discussion started by: numele
6 Replies

9. Shell Programming and Scripting

How to print a particular character n number of times in a line??

hi, Is it possible to print a particular character n number of times in a line? for example. i am print the following line using echo command.. echo "files successfully moved" i want to count the number of characters that are been displayed. i am doin it using echo "files... (8 Replies)
Discussion started by: Little
8 Replies

10. UNIX for Beginners Questions & Answers

awk or sed to print the character from the previous line after the regexp match

Hi All, I need to print the characters in the previous line just before the regular expression match Please have a look at the input file as attached I need to match the regular expression ^ with the character of the previous like and also the pin numbers and the output file should be like... (6 Replies)
Discussion started by: kshitij
6 Replies
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)
All times are GMT -4. The time now is 01:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy