Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
hi all!
I have a space delimited file...
I would like to total column 3 on the condition that column 2 is less than 1030 to a variable in my script
something like this:
TOTAL="`awk '{$2 < 1030} {s+=$3}END{print s}' file`"
Seem to be ignoring the {$2 < 1030}, I'm not sure of the... (3 Replies)
Hello,
I have one script which takes some time to complete.
I Need the total exact time taken by this script.
How can i modify this script.
Regards,
Sam. (21 Replies)
Hi Everybody,
I have the following example file...
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1
199|TST-GURGAON|GURGAON|1... (8 Replies)
Hi Friend,
Need your help.
I have a file which has information of start time and End time . I need to find how much time takes to complete the job . how can I do it in unix command .
Example of Log file :
Start Loading ---Thu Aug 2 17:14:09 EDT 2012
Load... (5 Replies)
Have a input file like this .....
attachments 100G
shared 1T
archive 300M
documents 300G
remotedocs 150M
I need the total in GB's ... where as M=MB,G=GB,T=TB
Basically need awk to calculate the total based on end... (5 Replies)
I'm using a .txt file filled with domain names for dig to use, the problem is that when i look at the results I get the query time for each individual query, I want to know how long it took in total for all queries to run, how can I achieve this? any help would be greatly appreciated, thank you.... (3 Replies)
Through find command I identified the files older that 1 year. I need the overall size utilizes by these 1 year older files. Please share me the command to identify it .Thanks
Please post in an adequate technical forum! (3 Replies)
Discussion started by: Sang
3 Replies
LEARN ABOUT DEBIAN
net::dns::sec::tools::timetrans
timetrans(3pm) User Contributed Perl Documentation timetrans(3pm)NAME
Net::DNS::SEC::Tools::timetrans - Convert an integer seconds count into text units.
SYNOPSIS
use Net::DNS::SEC::Tools::timetrans;
$timestring = timetrans(86488);
$timestring = fuzzytimetrans(86488);
DESCRIPTION
The timetrans() interface in Net::DNS::SEC::Tools::timetrans converts an integer seconds count into the equivalent number of days, hours,
and minutes. The time converted is a relative time, not an absolute time. The returned time is given in terms of days, hours, minutes,
and seconds, as required to express the seconds count appropriately.
The fuzzytimetrans() interface converts an integer seconds count into the equivalent number of weeks or days or hours or minutes. The unit
chosen is that which is most natural for the seconds count. One decimal place of precision is included in the result.
INTERFACES
The interfaces to the Net::DNS::SEC::Tools::timetrans module are given below.
timetrans()
This routine converts an integer seconds count into the equivalent number of days, hours, and minutes. This converted seconds count is
returned as a text string. The seconds count must be greater than zero or an error will be returned.
Return Values:
If a valid seconds count was given, the count converted into the
appropriate text string will be returned.
An empty string is returned if no seconds count was given or if
the seconds count is less than one.
fuzzytimetrans()
This routine converts an integer seconds count into the equivalent number of weeks, days, hours, or minutes. This converted seconds count
is returned as a text string. The seconds count must be greater than zero or an error will be returned.
Return Values:
If a valid seconds count was given, the count converted into the
appropriate text string will be returned.
An empty string is returned if no seconds count was given or if
the seconds count is less than one.
EXAMPLES timetrans(400) returns 6 minutes, 40 seconds
timetrans(420) returns 7 minutes
timetrans(888) returns 14 minutes, 48 seconds
timetrans(86400) returns 1 day
timetrans(86488) returns 1 day, 28 seconds
timetrans(715000) returns 8 days, 6 hours, 36 minutes, 40 second
timetrans(720000) returns 8 days, 8 hours
fuzzytimetrans(400) returns 6.7 minutes
fuzzytimetrans(420) returns 7.0 minutes
fuzzytimetrans(888) returns 14.8 minutes
fuzzytimetrans(86400) returns 1.0 day
fuzzytimetrans(86488) returns 1.0 day
fuzzytimetrans(715000) returns 1.2 weeks
fuzzytimetrans(720000) returns 1.2 weeks
COPYRIGHT
Copyright 2004-2012 SPARTA, Inc. All rights reserved. See the COPYING file included with the DNSSEC-Tools package for details.
AUTHOR
Wayne Morrison, tewok@tislabs.com
SEE ALSO timetrans(1)perl v5.14.2 2012-06-18 timetrans(3pm)