Sponsored Content
Top Forums Shell Programming and Scripting FOR loop problem: Kindly Help Post 302139190 by Ygor on Thursday 4th of October 2007 08:54:43 PM
Old 10-04-2007
Perhaps try something like this....
Code:
oldIFS="$IFS"
IFS='|'
while read f1 f2 etc
do
   echo do something with $f1 and $f2
done < reference.txt
IFS="$oldIFS"

 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Can someone kindly help with appending problem!!!

Hi guys,i urgently need help in this problem,i need to append one sentence to another line when it meet a certain word. For example: root: root time_last_login = 1191232080 root tty_last_login = /dev/vty0 root host_last_login = rep1nim root unsuccessful_login_count = 0 root... (10 Replies)
Discussion started by: cyberray
10 Replies

2. Shell Programming and Scripting

Kindly help : sort

Iam new to Unix ....analyzing the code Can any one pls explain what does it mean by below code sort +0 -1 +1 -2 +2 -3n +3 -4n +4 -5n file.txt -o awaiting for reply ..... (1 Reply)
Discussion started by: charandevu
1 Replies

3. Shell Programming and Scripting

kindly help me out on this please

Hello experts, please help me on this. This is the scenario: I have applications like BigBrother,PowerKeeper/PowerBroker etc.. which I have to install during server build for both AIX and Solaris. I already have separate installation scripts for both OS for all applications. Now, I want to... (0 Replies)
Discussion started by: solaix14
0 Replies

4. HP-UX

I am new to HPUX so kindly provide information related to it

Hello Gurus I am new to HPUX so kindly help me by providing information related to HPUX. I would like to know the date when HPUX 11i v3 comes in to market as well as I have H3056S student guide dated May 2005 which I download through some site. Now I want to know its a HPUX 11i v2 or HPUX 11i... (8 Replies)
Discussion started by: amity
8 Replies

5. Solaris

CJS instalation one problem...kindly help

hi am installing CJS frm one server to a cleint and i first did ./add_install_client -e now i need to know the mac add of the client so i entered into client and now hopw can i go to ok prmt ^] when this symbol is entered am nt being able to enter to ok promt what to do i... (1 Reply)
Discussion started by: all_is_well
1 Replies

6. Post Here to Contact Site Administrators and Moderators

kindly move thread

kindly move this thread: https://www.unix.com/unix-dummies-questions-answers/176868-get-all-strings-after-equal-sign.html to Shell Programming and Scripting...created in wrong forum... thanks!!! (0 Replies)
Discussion started by: h0ujun
0 Replies

7. Shell Programming and Scripting

FTP Transfer fails at first time. Kindly help

This is the command we use to transfer the file to destination we ran this command from batch job. first time it hangs. when we cancel and ran it again it works in 5 sec. anyone come out without solution..? ftp -n destinationftp << CMDEND user user/passwd lcd ${root}path cd path put... (1 Reply)
Discussion started by: shenthil76
1 Replies

8. Shell Programming and Scripting

Kindly Help regarding sorting a file rows

Dear All, I have a file name exporting.txt. Below is the content. $ cat exporting.txt . . exporting table DT_BCD 63716 rows exported . . exporting table DT_CVD 36321 ... (2 Replies)
Discussion started by: sudiptabhaskar
2 Replies
Pod::Coverage(3pm)					User Contributed Perl Documentation					Pod::Coverage(3pm)

NAME
Pod::Coverage - Checks if the documentation of a module is comprehensive SYNOPSIS
# in the beginnning... perl -MPod::Coverage=Pod::Coverage -e666 # all in one invocation use Pod::Coverage package => 'Fishy'; # straight OO use Pod::Coverage; my $pc = Pod::Coverage->new(package => 'Pod::Coverage'); print "We rock!" if $pc->coverage == 1; DESCRIPTION
Developers hate writing documentation. They'd hate it even more if their computer tattled on them, but maybe they'll be even more thankful in the long run. Even if not, perlmodstyle tells you to, so you must obey. This module provides a mechanism for determining if the pod for a given module is comprehensive. It expects to find either a "=head(n>1)" or an "=item" block documenting a subroutine. Consider: # an imaginary Foo.pm package Foo; =item foo The foo sub = cut sub foo {} sub bar {} 1; __END__ In this example "Foo::foo" is covered, but "Foo::bar" is not, so the "Foo" package is only 50% (0.5) covered Methods Pod::Coverage->new(package => $package) Creates a new Pod::Coverage object. "package" the name of the package to analyse "private" an array of regexen which define what symbols are regarded as private (and so need not be documented) defaults to [ qr/^_/, qr/^(un)?import$/, qr/^DESTROY$/, qr/^AUTOLOAD$/, qr/^bootstrap$/, qr/^(TIE( SCALAR | ARRAY | HASH | HANDLE ) | FETCH | STORE | UNTIE | FETCHSIZE | STORESIZE | POP | PUSH | SHIFT | UNSHIFT | SPLICE | DELETE | EXISTS | EXTEND | CLEAR | FIRSTKEY | NEXTKEY | PRINT | PRINTF | WRITE | READLINE | GETC | READ | CLOSE | BINMODE | OPEN | EOF | FILENO | SEEK | TELL | SCALAR )$/x, qr/^( MODIFY | FETCH )_( REF | SCALAR | ARRAY | HASH | CODE | GLOB | FORMAT | IO )_ATTRIBUTES$/x, qr/^CLONE(_SKIP)?$/, ] This should cover all the usual magical methods for tie()d objects, attributes, generally all the methods that are typically not called by a user, but instead being used internally by perl. "also_private" items are appended to the private list "trustme" an array of regexen which define what symbols you just want us to assume are properly documented even if we can't find any docs for them If "pod_from" is supplied, that file is parsed for the documentation, rather than using Pod::Find If "nonwhitespace" is supplied, then only POD sections which have non-whitespace characters will count towards being documented. $object->coverage Gives the coverage as a value in the range 0 to 1 $object->why_unrated "$object->coverage" may return "undef", to indicate that it was unable to deduce coverage for a package. If this happens you should be able to check "why_unrated" to get a useful excuse. $object->naked/$object->uncovered Returns a list of uncovered routines, will implicitly call coverage if it's not already been called. Note, private and 'trustme' identifiers will be skipped. $object->covered Returns a list of covered routines, will implicitly call coverage if it's not previously been called. As with "naked", private and 'trustme' identifiers will be skipped. Debugging support In order to allow internals debugging, while allowing the optimiser to do its thang, "Pod::Coverage" uses constant subs to define how it traces. Use them like so sub Pod::Coverage::TRACE_ALL () { 1 } use Pod::Coverage; Supported constants are: TRACE_ALL Trace everything. Well that's all there is so far, are you glad you came? Inheritance interface These abstract methods while functional in "Pod::Coverage" may make your life easier if you want to extend "Pod::Coverage" to fit your house style more closely. NOTE Please consider this interface as in a state of flux until this comment goes away. $object->_CvGV($symbol) Return the GV for the coderef supplied. Used by "_get_syms" to identify locally defined code. You probably won't need to override this one. $object->_get_syms($package) return a list of symbols to check for from the specified packahe _get_pods Extract pod markers from the currently active package. Return an arrayref or undef on fail. _private_check($symbol) return true if the symbol should be considered private _trustme_check($symbol) return true if the symbol is a 'trustme' symbol BUGS
Due to the method used to identify documented subroutines "Pod::Coverage" may completely miss your house style and declare your code undocumented. Patches and/or failing tests welcome. TODO
Widen the rules for identifying documentation Improve the code coverage of the test suite. "Devel::Cover" rocks so hard. SEE ALSO
Test::More, Devel::Cover AUTHORS
Richard Clamp <richardc@unixbeard.net> Michael Stevens <mstevens@etla.org> some contributions from David Cantrell <david@cantrell.org.uk> COPYRIGHT
Copyright (c) 2001, 2003, 2004, 2006, 2007, 2009 Richard Clamp, Michael Stevens. All rights reserved. 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-02-07 Pod::Coverage(3pm)
All times are GMT -4. The time now is 04:53 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy