11-09-2009
That is not possible with your input file since there are multiple entries with the same IP-address. Perhaps you mean you would like to have it sorted?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
If I have a flatfile like vote.dat
NAME | SEX | DATETIME | VOTE
Jason|M|2005-12-10 08.01.30|Y
Benson|M|2005-12-10 12.01.00|Y
William|M|2005-12-10 08.01.09|Y
Nick|M|2005-12-11 09.01.07|Y
Pascal|M|2005-12-11 01.01.06|Y
Mickey|F|2005-12-12 12.01.30|Y
How can I write a korn script to have... (4 Replies)
Discussion started by: sabercats
4 Replies
2. Shell Programming and Scripting
Hi,
I have a log file that has the date in this format "2006-05-30_13:14:04,256". I need to find the time difference between two log entries in milliseconds.
How to achieve this in AWK/GAWK script? :confused: (2 Replies)
Discussion started by: omprasad
2 Replies
3. Shell Programming and Scripting
Say I have a file 'example.txt' with these lines of code in it:
hello:anddasd:cheese:gerg
whatever:sdadsa:asdfasdfa:wwew
hmmmm:something:gfhfhgf:sdasdas
Question:
1. How would I write a script which is able to take all the words before the first ':'?
2. How would I write a script which is... (6 Replies)
Discussion started by: i_am_a_robot
6 Replies
4. Shell Programming and Scripting
hi all,
here is the description to my problem.
input parameters: $date1 & $date2
based on the range i need to select the archived files from the archived directory and moved them in to working directory.
can u please help me in writing the code to select the multiple files based on the... (3 Replies)
Discussion started by: bbc17484
3 Replies
5. Windows & DOS: Issues & Discussions
Hello,
I need some help,
I got a CSV file called test.txt with this text in it :
08/02/2011;0,677;0,903;1,079;1,336;1,513;1,683
There's only a line and i need to copy theese numbers into variables :
0,677
0,903
1,079
1,336
1,513
1,683
The output file should look like this... (5 Replies)
Discussion started by: jujulips
5 Replies
6. UNIX for Dummies Questions & Answers
Hi guys,
brand new to this thread and very very new to UNIX...so go easy please!
Anyway I have a file that looks like this:
>>--------------------------------------------------------------------------
Date/Time/Eng. : 2012-06-22 / 00:26 / DS
Reported problem : (SD) ... (5 Replies)
Discussion started by: martin0852
5 Replies
7. Shell Programming and Scripting
I would like to recover the data from 3 text tags.
These three markers are located between the tags specific location <tag1> and </tag1> knowing that they are in many places.
In File.txt:
<tag2>txt2</tag2>
<tag3>txt3</tag3>
<tag4>txt4</tag4>
....
<tag1>
<tag2>txt2</tag2>... (3 Replies)
Discussion started by: Amad
3 Replies
8. Shell Programming and Scripting
Can anyone tell me what this script does?
sort file1.txt | awk -F, -f event.gawk
Thank you. (2 Replies)
Discussion started by: dee campbell
2 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
<Re-posting in Correct group>
I'm trying to select all the files in a folder that starts with a particular name format and are created in a gven date range using 'ls' command...but i'm not successful....
Example : I'm trying to see all the text files in a folder who names start... (6 Replies)
Discussion started by: Satya C1
6 Replies
LEARN ABOUT SUNOS
expireover
EXPIREOVER(8) System Manager's Manual EXPIREOVER(8)
NAME
expireover - Expire entries from the news overview database
SYNOPSIS
expireover [ -a ] [ -D overviewdir ] [ -f file ] [ -n ] [ -O overview.fmt ] [ -s ] [ -v ] [ -z ] [ file... ]
DESCRIPTION
Expireover expires entries from the news overview database. It reads a list of pathnames (relative to the spool directory,
/var/spool/news), from the specified files or standard input if none are specified. (A file name of ``-'' may be used to specify the stan-
dard input.) It then removes any mention of those articles from the appropriate overview database.
OPTIONS
-z If the ``-z'' flag is used, then the input is assumed to be sorted such that all entries for a newsgroup appear together so that it
can be purged at once. This flag can be useful when used with the sorted output of expire(8)'s ``-z'' flag.
-s If the ``-s'' flag is used, then expireover will read the spool directory for all groups mentioned in the active(5) file, and remove
the overview entries of any articles that do not appear in the directory.
-f To specify an alternate file, use the ``-f'' flag; a name of ``-'' is taken to mean the standard input.
-a The ``-a'' flag reads the spool directory and adds any missing overview entries. It will create files if necessary. This can be
used to initialize a database, or to sync up a overview database that may be lacking articles due to a crash. Overchan should be
running, to ensure that any incoming articles get included. Using this flag implies the ``-s'' flag; the ``-f'' flag may be used to
add only a subset of the newsgroups.
-v To see a list of the entries that would be added or deleted, use the ``-v'' flag.
-n To perform no real updates, use the ``-n'' flag.
-D The ``-D'' flag can be used to specify where the databases are stored. The default directory is /var/spool/news/over.view.
-O The ``-O'' flag may be used to specify an alternate location for the overview.fmt(5) file; this is normally only useful for debug-
ging.
HISTORY
Written by Rob Robertson <rob@violet.berkeley.edu> and Rich $alz <rsalz@uunet.uu.net> (with help from Dave Lawrence <tale@uunet.uu.net>)
for InterNetNews. This is revision 1.8, dated 1996/10/29.
SEE ALSO
expire(8), overview.fmt(5).
EXPIREOVER(8)