Thanks a lot, i actually did try similiar 1...not working as well..
Attach is our tester output. We are only interested in Report for Site 0 & Report for Site 1 which is highlighted in red. We would want to take out all the values for %.
How can I find which version of Awk is installed? OpSystem is HPUX 11.x
I am getting an error when trying to use the keyword nextfile and I dont know why! (Well, I can only assume that I have am using a version of Awk that does not support nextfile. However, according to O'Reilly, nextfile is... (3 Replies)
Hi,
I've got dozens of tar's with two files in each one,
live_access_log & live_error_log (one tar for each day, backups).
The probelm is i need to match a pattern in all of the archive_access_log files and output the line to a seperate file (All_access.log).
I.e. I need to get details... (21 Replies)
Hi Guys,
I need to set the value of $7 to zero in case $7 is NULL. I've tried the below command but doesn't work. Any ideas. thanks guys.
MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else { print $7}}' `
Harby. (4 Replies)
Hi All,
Please i need to know the difference between grep, egrep & grep -i when used to serach through a file.
My platform is SunOS 5.9 & i'm using the korn shell.
Regards,
- divroro12 - (2 Replies)
Hi people,
I have a file status.txt:
Following 6 ports are totally or partially unavailable:
------------------------------------------------------------
MOD LINK PORTNAMES STAT1 STAT2 STAT3 SYN TYPE
------------------------------------------------------------
8 Pr37 ... (12 Replies)
Hi,
I'm working with gawk (on DOS) today.
A goal is: find a string for-instance '123', cut a line in two columns and write second one. The problem is: command line works OK, awk file doesn't. But I would like to work with file because there are many strings to find.
input:
line command:
awk... (4 Replies)
Hi,
TASK 1:
I have been using this code to print the information of files kept at "/castor/cern.ch/user/s/sudha/forPooja" in some text file name FILE.txt.
rfdir /castor/cern.ch/user/s/sudha/forPooja | grep data | awk '{print "rfio:///castor/cern.ch/user/s/sudha/forPooja/"$9}' > FILE.txt
... (6 Replies)
Hello people!
I would like to create one script following this stage
I have one directory with 100 files
File001
File002
...
File100
(This is the format of content of the 100 files)
2012/03/10 12:56:50:221875936 1292800448912 12345 0x00 0x04 0
then I have one... (0 Replies)
Hi Guru's.
I am trying to use to check if $5 is greater than 80 & if not 100, then to print $0 :
awk '{ if ($5>80) && if ($5 != 100) print $0}
But getting error:
>bdf1|sed 's/%//g'|awk '{ if ($5>80) && if ($5 != 100) print $0}'
syntax error The source line is 1.
The error... (6 Replies)
Discussion started by: rveri
6 Replies
LEARN ABOUT DEBIAN
universal::moniker
moniker(3pm) User Contributed Perl Documentation moniker(3pm)NAME
UNIVERSAL::moniker - Nicer names for your Perl modules/classes
SYNOPSIS
use UNIVERSAL::moniker;
DESCRIPTION
Class names in Perl often don't sound great when spoken, or look good when written in prose. For this reason, we tend to say things like
"customer" or "basket" when we are referring to "My::Site::User::Customer" or "My::Site::Shop::Basket". We thought it would be nice if our
classes knew what we would prefer to call them.
This module will add a "moniker" (and "plural_moniker") method to "UNIVERSAL", and so to every class or module.
moniker
$ob->moniker;
Returns the moniker for $ob. So, if $ob->isa("Big::Scary::Animal"), "moniker" will return "animal".
plural_moniker
$ob->plural_moniker;
Returns the plural moniker for $ob. So, if $ob->isa("Cephalopod::Octopus"), "plural_moniker" will return "octopuses".
(You need to install Lingua::EN::Inflect for this to work.)
AUTHORS
Marty Pauley <marty+perl@kasei.com>, Tony Bowden <tony@kasei.com>, Elizabeth Mattijsen <liz@dijkmat.nl>
(Yes, 3 authors for such a small module!)
COPYRIGHT
Copyright (C) 2004 Kasei
This program is free software; you can redistribute it under the same terms as
Perl.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.
perl v5.10.0 2009-06-09 moniker(3pm)