Sponsored Content
Top Forums Shell Programming and Scripting How to get total time using awk Post 302439189 by ashimada on Thursday 22nd of July 2010 04:49:01 AM
Old 07-22-2010
How to get total time using awk

Hi guys,

I can't find a solution to sum the h:m:s: columns.
Code:
28/05/2010  03h 29min 34seg ADSL TELEMAR
28/05/2010  12h 19min 21seg ADSL TELEMAR
29/05/2010  04h 20min 02seg ADSL TELEMAR
29/05/2010  04h 31min 45seg ADSL TELEMAR
30/05/2010  06h 10min 43seg ADSL TELEMAR

Thanks

Moderator's Comments:
Mod Comment Use code tags please, ty.

Last edited by zaxxon; 07-22-2010 at 05:55 AM..
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Calculate total space, total used space and total free space in filesystem names matching keyword

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)
Discussion started by: bigben1220
4 Replies

2. Shell Programming and Scripting

awk total and print if

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)
Discussion started by: lyoncc
3 Replies

3. Shell Programming and Scripting

Awk total and variance

File1 0358 Not Visible ***:* NA:NA RDF1+TDEV Grp'd (M) RW 102413 0359 Not Visible ***:* NA:NA RDF1+TDEV N/Grp'd (m) RW - 035A Not Visible ***:* NA:NA RDF1+TDEV N/Grp'd (m) RW - 035B Not Visible ***:* NA:NA ... (2 Replies)
Discussion started by: greycells
2 Replies

4. Shell Programming and Scripting

Total Time

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)
Discussion started by: j_panky
21 Replies

5. Shell Programming and Scripting

Total Count using AWK

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)
Discussion started by: sraj142
8 Replies

6. Shell Programming and Scripting

Total time taken

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)
Discussion started by: deep_kol
5 Replies

7. Shell Programming and Scripting

awk for total

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)
Discussion started by: greycells
5 Replies

8. UNIX for Dummies Questions & Answers

Dig total query time?

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)
Discussion started by: r7a7v7
3 Replies

9. UNIX for Beginners Questions & Answers

Total size utilizes by the files older than a time span

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
PPTP(8) 						      System Manager's Manual							   PPTP(8)

NAME
pptp - PPTP driver SYNOPSIS
pptp <pptp-server-IP> <pptp-options> [ppp-options] ... DESCRIPTION
pptp establishes the client side of a Virtual Private Network (VPN) using the Point-to-Point Tunneling Protocol (PPTP). Use this program to connect to an employer's PPTP based VPN, or to certain cable and ADSL service providers. By default, pptp establishes the PPTP call to the PPTP server, and then starts an instance of pppd to manage the data transfer. However, pptp can also be run as a connection manager within pppd. OPTIONS
The first non-option argument on the pptp command line must be the host name or IP address of the PPTP server. All long options (starting with "--") are interpreted as pptp options, and a fatal error occurs if an unrecognised option is used. All command-line arguments which do not start with "-" are interpreted as ppp options, and passed as is to pppd unless --nolaunchpppd is given. --phone <number> Pass <number> to remote host as phone number --nolaunchpppd Do not launch pppd but use stdin as the network connection. Use this flag when including pptp as a pppd connection process using the pty option. See EXAMPLES. --quirks <quirk> Work around a buggy PPTP implementation, adopts special case handling for particular PPTP servers and ADSL modems. Currently recog- nised values are BEZEQ_ISRAEL only --debug Run in foreground (for debugging with gdb) --sync Enable Synchronous HDLC (pppd must use it too) --timeout <secs> Time to wait for reordered packets (0.01 to 10 secs) --nobuffer Completely disables buffering and reordering of packets. Any --timeout specified will be ignored. --idle-wait <secs> Time to wait before sending a control connection echo request. The RFC2637 default is 60 seconds. --max-echo-wait <secs> Time to wait for an echo reply before closing the control connection. The RFC2637 default is 60 seconds. --logstring <name> Use <name> instead of 'anon' in syslog messages --localbind <addr> Bind to specified IP address instead of wildcard --loglevel <level> Sets the debugging level (0=low, 1=default, 2=high) --test-type <n> Enable packet reordering tests that damage the integrity of the packet stream to the server. Use this only when testing servers. Zero is the default, and means that packets are sent in the correct order. A value of one (1) causes a single swap between two packets, such that the sequence numbers might be 1 2 3 4 6 5 7 8 9. A value of two (2) causes ten packets to be buffered, then sent out of order but ascending, such that the sequence numbers might be 1 2 3 4 16 6 7 8 9 10 11 12 13 14 15 17 18 19 20. A value of three (3) causes ten packets to be buffered, then sent in the reverse order, like this; 1 2 3 4 16 15 14 13 12 11 10 9 8 7 6 5 17 18 19 20. --test-rate <n> Sets the number of packets to pass before causing a reordering test. Default is 100. Has no effect if test-type is zero. The result of test types 2 and 3 are undefined if this value is less than ten. QUIRKS
BEZEQ_ISRAEL modifies packets to interoperate with Orckit ADSL modems on the BEZEQ network in Israel. EXAMPLES
Connection to a Microsoft Windows VPN Server pppd noauth nobsdcomp nodeflate require-mppe-128 name domain\\username remotename PPTP pty "pptp 10.0.0.5 --nolaunchpppd" Note that the chap-secrets file used by pppd must include an entry for domain\username STATISTICS
The pptp process collects statistics when sending and receiving GRE packets. They are intended to be useful for debugging poor PPTP perfor- mance and for general monitoring of link quality. The statistics are cumulative since the pptp process was started. The statistics can be viewed by sending a SIGUSR1 signal to the "GRE-to-PPP Gateway" process, which will cause it to dump them to the sys- tem logs (at the LOG_NOTICE level). A better way to present the statistics to applications is being sought (e.g. SNMP?). The following statistics are collected at the time of writing (April 2003): rx accepted the number of GRE packets successfully passed to PPP rx lost the number of packets never received, and presumed lost in the network rx under win the number of packets which were duplicates or had old sequence numbers (this might be caused by a packet-reordering network if your reordering timeout is set too low) rx over win the number of packets which were too far ahead in the sequence to be reordered (might be caused by loss of more than 300 packets in a row) rx buffered the number of packets which were slightly ahead of sequence, and were either buffered for reordering, or if buffering is disabled, accepted immediately (resulting in the intermediate packets being discarded). rx OS errors the number of times where the operating system reported an error when we tried to read a packet rx truncated the number of times we received a packet which was shorter than the length implied by the GRE header rx invalid the number of times we received a packet which had invalid or unsupported flags set in the header, wrong version, or wrong protocol. rx acks the number of pure acknowledgements received (without data). Too many of these will waste bandwidth, and might be solved by tuning the remote host. tx sent the number of GRE packets sent with data tx failed the number of packets we tried to send, but the OS reported an error tx short the number of times the OS would not let us write a complete packet tx acks the number of times we sent a pure ack, without data tx oversize the number of times we couldn't send a packet because it was over PACKET_MAX bytes long round trip the estimated round-trip time in milliseconds SEE ALSO
pppd(8) Documentation in /usr/share/doc/pptp AUTHOR
This manual page was written by James Cameron <james.cameron@hp.com> from text contributed by Thomas Quinot <thomas@debian.org>, for the Debian GNU/Linux system. The description of the available statistics was written by Chris Wilson <chris@netservers.co.uk>. Updates for the Debian distribution by Ola Lundqvist <opal@debian.org>. PPTP(8)
All times are GMT -4. The time now is 10:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy