Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to count no. of received data of any one files? Post 302933594 by aaditya321 on Saturday 31st of January 2015 04:32:20 AM
Old 01-31-2015
Thanks a lot R Singh, please enhance your code i.e. how to work your given this code.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How do I write a ksh script that will check if all ftp files are received?

I am trying to code a ksh script that will check to see if all 26 incoming ftp files have been received before proceeding to the next function, which is to rename each file. Here is the pseudo-code of what I am trying to do: <<STEP_1>> IF all ALS files have been transmitted then... (2 Replies)
Discussion started by: doug145
2 Replies

2. Shell Programming and Scripting

count horizontal data

dear all.. i need help i have data ID,A,B,C,D,E,F,G,H --> header 917188,4,1,2,1,4,6,3,5 --> data i want output : ID,OUT1,OUT2,OUT3 --> header 917188,3,3,2 where OUT1 is count of 1 and 2 from $2-$9 OUT2 is count of 3 and 4 from $2-$9... (3 Replies)
Discussion started by: buncit8
3 Replies

3. Shell Programming and Scripting

awk count how many unique IPs have received that error

Hi all, I want to write a awk script that counts unique IPs that have received one special error. For example 25-04-2012;192.168.70.31;1254545454545417;500.0;SUCCESS 25-04-2012;192.168.70.32;355666650914;315126423993;;General_ERROR_23 30-04-2012;192.168.70.33;e;null;null;Failure... (2 Replies)
Discussion started by: arrals_vl
2 Replies

4. Shell Programming and Scripting

awk count how many IP have received that error

Hi all, I want to write a awk script that counts unique IPs that have received one special error. For example 25-04-2012;192.168.70.31;1254545454545417;500.0;SUCCESS 25-04-2012;192.168.70.32;355666650914;315126423993;;General_ERROR_23 30-04-2012;192.168.70.33;e;null;null;Failure... (4 Replies)
Discussion started by: arrals_vl
4 Replies

5. Shell Programming and Scripting

Count column data

Hi Guys, B07 U51C A1 44 B1 44 Yes B07 L64U A2 44 B1 44 Yes B07 L62U A2 44 B1 44 Yes B07 L11C A4 32 B1 44 NO B05 L12Z A1 12 B1 44 NO B01 651Z A2 44 B1 44 NO B04 A51Z A2 12 B1 44 NO L07 B08D A4 12 B1 44 NO B07 RU8D A4 44 B1 44 Yes B07 L58D A4 15 B1 44 No B07 LA8D A4 44 B1 44 Yes B07... (6 Replies)
Discussion started by: asavaliya
6 Replies

6. Shell Programming and Scripting

To trigger a mail if the files have been received

Hi All, i have a folder in which we receive 6 files daily. the file name will be appended with date for ex : files that we receive on 1/9/2013 will be like file1_20130108.txt.zip file1_20130108.txt file2_20130108.txt.zip file2_20130108.txt file3_20130108.txt.zip file3_20130108.txt the... (3 Replies)
Discussion started by: mahesh300182
3 Replies

7. UNIX for Advanced & Expert Users

Errors received while restoring my data from ext3 filesystem

Hi All, I have dual boot on my laptop - Win8 And linuxMint. From linuxmint i had copied all my data found on the NTFS partitions (on my laptop) to an external hard drive (formatted with ext3). i used rsync for this. Now after my hard disk crashed, am restoring the data back from ext3... (2 Replies)
Discussion started by: coolatt
2 Replies

8. Shell Programming and Scripting

Error files count while coping files from source to destination locaton as well count success full

hi All, Any one answer my requirement. I have source location src_dir="/home/oracle/arun/IRMS-CM" My Target location dest_dir="/home/oracle/arun/LiveLink/IRMS-CM/$dc/$pc/$ct" my source text files check with below example.text file content $fn "\t" $dc "\t" $pc "\t" ... (3 Replies)
Discussion started by: sravanreddy
3 Replies

9. Shell Programming and Scripting

How to count data per 5 Minutes?

Hi All could u help me, i want to count data per minutes to be 5 minutes. sample data like below : 23:40 187 23:41 200 23:42 178 23:43 171 23:44 161 23:45 145 23:46 172 23:47 163 23:48 174 23:49 174expectation : 23.40 - 23.44 897 23.45 - 23.49 828thanks (2 Replies)
Discussion started by: fajar_3t3
2 Replies

10. Shell Programming and Scripting

Script to find directory is getting files in every 10 mins, if not then when last time file received

Dears, I am looking for a script which will work as a watch directory. I ha directory which keep getting files in every 10 mins and some time delay. I want to monitor if the directory getting the files in every 10 mins if not captured the last received file time and calculate the delay. ... (6 Replies)
Discussion started by: sadique.manzar
6 Replies
pppstats(8)						      System Manager's Manual						       pppstats(8)

NAME
pppstats - Print Point-to-Point Protocol (PPP) statistics SYNOPSIS
/usr/sbin/pppstats [-a] [-v] [-r] [-c count] [-w secs] [interface] [-z] OPTIONS
Displays absolute values rather than deltas. With this option, all reports show statistics for the time since the link was initiated. Without this option, the second and subsequent reports show statistics for the time since the last report. Repeats the display count times. The default repeat count is 1 if the -w option is not specified, otherwise infinity. Displays the overall packet compression rate. The rate value is between 0 and 1, with 0 meaning that the data is incompressible. Displays additional statistics, such as the number of packets ignored (rejected by the VJ TCP header decompression code). Pauses wait seconds between each display. If this option is not spec- ified, the default interval is 5 seconds. Instead of the standard display, show statistics indicating the performance of the packet com- pression algorithm in use. See the STATISTICS section for further information on this option. DESCRIPTION
The pppstats utility reports PPP-related statistics at regular intervals for the specified PPP interface. If interface is unspecified, it will default to ppp0. The display is split horizontally into input and output sections containing columns of statistics describing the properties and volume of packets received and transmitted by the interface. STATISTICS The following fields are printed on the input side when the -z option is not used: The total number of bytes received by this interface. The total number of packets received by this interface. The number of header-compressed TCP packets received by this interface. The num- ber of header-uncompressed TCP packets received by this interface. Not reported when the -r option is specified. The number of corrupted or bogus header-compressed TCP packets received by this interface. Not reported when the -r option is specified. The number of VJ header- compressed TCP packets dropped on reception by this interface because of preceding errors. Only reported when the -v option is specified. The total number of non-TCP packets received by this interface. Only reported when the -v option is specified. The compression ratio achieved for received packets by the packet compression scheme in use, defined as the uncompressed size divided by the compressed size. Only reported when the -r option is specified. The total number of bytes received, after decompression of compressed packets. Only reported when the -r option is specified. The following fields are printed on the output side: The total number of bytes transmitted from this interface. The total number of pack- ets transmitted from this interface. The number of TCP packets transmitted from this interface with VJ-compressed TCP headers. The number of TCP packets transmitted from this interface with VJ-uncompressed TCP headers. Not reported when the -r option is specified. The total number of non-TCP packets transmitted from this interface. Not reported when the -r option is specified. The number of searches for the cached header entry for a VJ header compressed TCP packet. Only reported when the -v option is specified. The number of failed searches for the cached header entry for a VJ header compressed TCP packet. Only reported when the -v option is specified. The compression ratio achieved for transmitted packets by the packet compression scheme in use, defined as the size before compression divided by the compressed size. Only reported when the -r option is specified. The total number of bytes to be transmitted, before packet compression is applied. Only reported when the -r option is specified. When the -z option is specified, pppstats displays the following fields, relating to the packet compression algorithm currently in use. If packet compression is not in use, these fields all display zeroes. The fields displayed on the input side are: The number of bytes of com- pressed packets received. The number of compressed packets received. The number of bytes of incompressible packets (that is, those which were transmitted in uncompressed form) received. The number of incompressible packets received. The recent compression ratio for incoming packets, defined as the uncompressed size divided by the compressed size (including both compressible and incompressible packets). The fields displayed on the output side are: The number of bytes of compressed packets transmitted. The number of compressed packets transmitted. The number of bytes of incompressible packets transmitted (that is, those which were transmitted in uncompressed form). The number of incompressible packets transmitted. The recent compression ratio for outgoing packets. SEE ALSO
Daemons: pppd(8) pppstats(8)
All times are GMT -4. The time now is 08:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy