Hello all,
I have a test file that has the format:
.....
O
3.694950 -.895050 1.480000
O
5.485050 .895050 1.480000
Ti
-4.590000 4.590000 2.960000
Ti
-2.295000 ... (5 Replies)
I'm looking for a sort command that will sort by zip code first then by last name. (zip code is the last field, last name is first field)
data file looks like this.
Hope Bob 1234 Main ST. Colorado Springs, CO 80920
I was thinking along the lines of:
sort -k9n address.data //for the... (2 Replies)
I was trying to check for the sort of some columns (say 1-10) of particular file. Now, by default, the Unix sort uses as a separator whitespace (e.g. if you have 'foo bar' then it separates it into 'foo' and 'bar' to use as keys)
Now, I know which particular columns I want to use as the sort... (1 Reply)
Hi all.
Is there a way that I can use the sort command too sort the following field by earliest time (12:00AM) to latest time (11:59PM)?
07:12PM
07:53PM
07:54PM
08:07PM
10:15AM
10:21AM
TIA!!!!!! (1 Reply)
Hello,
I have a large data file:
1234 8888 bbb
2745 8888 bbb
9489 8888 bbb
1234 8888 aaa
4838 8888 aaa
3977 8888 aaa
I need to remove duplicate lines (where the first column is the duplicate). I have been using:
sort file.txt | uniq -w4 > newfile.txt
However, it seems to keep the... (11 Replies)
Hi Guys,
I have a file to be sorted and uniq with the following format.
S00001002|01|20021231
S00001002|01|20011031
S00001006|01|20120430
S00001006|01|20111231
S00001006|01|20111031
S00001006|01|20110831
S00001006|01|20110731
S00001006|01|20101231
S00001006|01|20091231... (5 Replies)
I have a file like this:
/vol/eng_app_0103z
/vol/eng_app_0103z
/vol/eng_app_0120z
/vol/eng_app_0126z
/vol/eng_app_0144z
/vol/eng_app_0150z
/vol/eng_app_0154z
/vol/eng_app_01551z
/vol/eng_app_01552z
/vol/eng_app_0155z
/vol/eng_app_0164z
/vol/eng_app_0199zWhen I use the sort command... (3 Replies)
I have a question about what the sort command is doing.
Here is some sample data:
348201310013RVE 2
600201310013GFJ 70
3302013020101NS 40
600201309013GFJ 70
The sort command that is running is as follows:
sort -k 1,3 -k 12,4 input.txt > output.txt
... (6 Replies)
Have a text file containing 4 columns, the 4th column is sorted numerically in descending order. The 2nd column is alpha text. Been able to get the 4th column to sort in descending order. The 2nd column sorts correctly but it's also in reverse. Would like to be able to keep the 4th column sort... (8 Replies)
Discussion started by: jimmyf
8 Replies
LEARN ABOUT SUSE
active.times
ACTIVE.TIMES(5) InterNetNews Documentation ACTIVE.TIMES(5)NAME
active.times - List of local creation times of newsgroups
DESCRIPTION
The file pathdb/active.times provides a chronological record of when newsgroups were created on the local server. This file is normally
updated by mod-active and innd whenever a newgroup control message is processed or a "ctlinnd newgroup" command is issued, and is used by
nnrpd to answer NEWGROUPS requests.
Each line consists of three fields:
<name> <time> <creator>
The first field is the name of the newsgroup. The second field is the time it was created, expressed as the number of seconds since the
epoch. The third field is plain text intended to describe the entity that created the newsgroup. This field is encoded in UTF-8 and is
usually the e-mail address of the person who created the group, as specified in the control message or on the ctlinnd command line, or the
newsmaster specified at configure time if no creator argument was given to ctlinnd (by default, it is "usenet").
You can get the active.times file of another NNTP server with getlist(1).
EXAMPLE
The line:
news.admin.moderation 1175716803 <group-admin@isc.org>
shows that the newsgroup news.admin.moderation was created on April 4th, 2007, at 20:00:03 UTC. This date can be obtained for instance
with "convdate -c 1175716803" (convdate(1) is shipped with INN) or "date -u -d "Jan 1, 1970 00:00:00 +0000 + 1175716803 seconds"". It is
when the newsgroup was locally created; in this example, it is when a control message sent by "group-admin@isc.org" was received and
processed by the news server (see control.ctl(5) for more details). Therefore, the time is not necessarily the same on every news server.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. Converted to POD by Russ Allbery <rra@stanford.edu>.
$Id: active.times.pod 8638 2009-09-28 19:59:48Z iulius $
SEE ALSO active(5), convdate(1), ctlinnd(8), getlist(1), inn.conf(5), innd(8), mod-active(8), nnrpd(8).
INN 2.5.2 2009-09-29 ACTIVE.TIMES(5)