Hi.
From your sample input file:
Input data file data1:
via: sort -d -k3,3 data1
to:
Best wishes ... cheers, drl
Using sort -d works with the sample data given because ANT, BAT, and CAT (starting with A, B, and C) come before Dog, Duck, and Rat (starting with D and R). If ANT had been Ant and Dog had been DOG, sort -d would not put DOG before Ant.
Hi all,
i have a data array as followes.
ARRAY=DFSG345GGG
ARRAY=234FDFG090
ARRAY=VDFVGBGHH
so on..........
i need all english letters to be change to lower case. So i am expecting to see
ARRAY=dfsg345ggg
ARRAY=234fdfg090
ARRAY=vdfvgbghh
so on........
If i have to copy this data in... (8 Replies)
Hello,
I have a big data file (160 MB) full of records with pipe(|) delimited those fields. I`m sorting the file on the first field.
I'm trying to sort with "sort" command and it brings me 6 minutes.
I have tried with some transformation methods in perl but it results "Out of memory". I was... (2 Replies)
Hello all -
I am to this forum and fairly new in learning unix and finding some difficulty in preparing a small shell script. I am trying to make script to sort all the files given by user as input (either the exact full name of the file or say the files matching the criteria like all files... (3 Replies)
Hi Experts,
I want to Sort the data in fixed width file where i have Header and Footer also in file.
I m using below commad to do the sort based on field satarting from 15 position to 17 position , but it is not ignoring the Header and Footer of the file while sorting. In the output i am... (5 Replies)
cat file1.txt
field1 "user1":
field2:"data-cde"
field3:"data-pqr"
field4:"data-mno"
field1 "user1":
field2:"data-dcb"
field3:"data-mxz"
field4:"data-zul"
field1 "user2":
field2:"data-cqz"
field3:"data-xoq"
field4:"data-pos"
Now i need to have the date like below.
i have just... (7 Replies)
Hi. I am not sure the title gives an optimal description of what I want to do. Also, I tried to post this in the "UNIX for Dummies Questions & Answers", but it seems no-one was able to help out.
I have several text files that contain data in many columns. All the files are organized the same... (14 Replies)
Hi Experts,
I have a filelist collected from another server , now want to sort the output using date/time stamp filed.
- Filed 6, 7,8 are showing the date/time/stamp.
Here is the input:
#----------------------------------------------------------------------
-rw------- 1 root ... (3 Replies)
I have a text file and each field is separated by semicolon ( ; ). Field number 7 is internally separated by comma ( , ) and pipe ( | ) symbol. I want to sort file based on three different fields which are marked in BOLD.
Here first BOLD field will have numbers upto the length of 9 characters,... (6 Replies)
I have to sort below output in text file in unix bash
20170308
DA,I,113
20170308
PM,I,123
20170308
DA,U,22
20170308
PM,U,123
20170309
DA,I,11
20170309
PM,I,23
20170309
DA,U,123
20170309
PM,U,233 (8 Replies)
I have a string of pre defined ip address list which will always remain constant their order will never change like in below sample:
iplist=8.8.5.19,9.7.5.14,12.9.9.23,8.8.8.14,144.1.113
In the above example i m considering only 5 ips but there could be many more.
Now i have a file which... (15 Replies)
Discussion started by: mohtashims
15 Replies
LEARN ABOUT MOJAVE
recvstats
RECVSTATS(8) System Manager's Manual RECVSTATS(8)NAME
recvstats - summarize HylaFAX receive accounting information
SYNOPSIS
/usr/sbin/recvstats [ options ] [ files ]
DESCRIPTION
recvstats is a command script that prints a summary of the HylaFAX accounting statistics for received facsimile. The statistics can be
sorted using one of several keys: the caller's CSI (default), CIDName (CallID2), CIDNumber (CallID1), the communication speed, or the com-
munication data format. Statistics are read from the file /var/spool/hylafax/log/xferfaxlog unless filenames are specified on the command
line.
The following table is an example of the output from recvstats (using the default sort key):
Sender CIDName CIDNumber Pages Time Pg/min Errs TypRate TypData
61 30:47 2.0 16 9600 1-DMR
+13037904674 5 1:34 3.2 2 9600 1-DMH
+14159657824 1 1:00 1.0 0 9600 1-DMH
+15086636852 2 0:00 2.0 0 9600 1-DMH
+15105268781 740 5:47:51 2.1 59 9600 1-DMH
+15105287164 20 7:00 2.9 0 9600 1-DMH
+15123713545 3 1:19 2.3 0 9600 1-DMH
+15123713641 5 1:04 4.6 0 9600 1-DMH
+16099211926 3 2:00 1.5 0 9600 1-DMH
+17088987617 1 0:18 3.3 0 9600 1-DMH
415 390 6175 22 6:01 3.6 0 9600 1-DMH
415 965 7651 56 34:52 1.6 14 9600 1-DMH
415 973 6723 1 2:09 0.5 0 9600 2-DMR
49 211 161514 1 0:00 1.0 0 9600 2-DMR
8185970503 1 0:28 2.1 0 9600 2-DMR
ALDUS CORPORATION ALDUS CO 5551212 3 2:34 1.2 0 9600 1-DMH
--------------------------------------------------------------------------------------------------
Total 925 7:19:03 2.1 91
The Sender column shows the caller's TSI (notice that some callers have not setup a TSI). The CIDName column is the received CIDName value
for the sender. The CIDNumber column is the received CIDNumber value for the sender. The Pages column is the total number of good pages
received. The time column shows the total amount of time spent receiving facsimile from a sender. The Pg/min column displays the average
transfer rate. The Errs column indicates how many protocol errors were encountered while receiving facsimile. The TypRate column displays
the most common communication speed with which facsimile were received. The TypData column shows the most common data format in which fac-
simile data were received.
OPTIONS -age days Show information only for the facsimile received in the last specified number of days.
-csi* Sort output by caller's CSI.
-cidname Sort output by CIDName
-cidnumber Sort output by CIDNumber
-format Sort output by data format.
-send* Sort output by sender (i.e. caller's CSI).
-speed Sort output by signalling rate.
-since time Show information only for the facsimile received since the specified time; where time is of the form ``MM/DD/YY HH:MM'' (the
date(1) format string %D %H:%M).
-end time Show information only for the facsimile received before the specified time; where time is of the same form as since.
FILES
/var/spool/hylafax spooling area
/var/spool/hylafax/log/xferfaxlog default file from which to read statistics
SEE ALSO faxq(8), xferfaxstats(8), hylafax-log(5)
March 3, 1995 RECVSTATS(8)