06-12-2012
What Operating System and version are you running?
How big are the files?
Are either or both of the files in sorted order?
Do the records in each file match one-for-one?
Does the output order matter?
Can you post sample input and matching output?
Is this an extract from a database where it might be easier to work on the data while it is still in the database?
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have got one file with more than 120+ million records(35 GB in size). I have to extract some relevant data from file based on some parameter and generate other output file.
What will be the besat and fastest way to extract the ne file.
sample file format :--... (2 Replies)
Discussion started by: learner16s
2 Replies
2. Shell Programming and Scripting
hi,
I'm trying to sort a file which has 3.7 million records an gettign the following error...any help is appreciated...
sort: Write error while merging.
Thanks (6 Replies)
Discussion started by: greenworld
6 Replies
3. What is on Your Mind?
Here is an easy game!
I wrote a number between 0 and 20 (that can include 0 and 20) on a piece of paper. I am staring at it now, imagining the number so you can read my mind ;)
Reply once, and only once, with a number from 0 to 20 and the first person to guess it wins 1,000,000 Bits.
... (24 Replies)
Discussion started by: Neo
24 Replies
4. Shell Programming and Scripting
I have a log file that is about 1.2 million lines long and about 300MB.
we need a way to clean up this file and only keep the last few thousand lines.
if i use tail command we run our of memory as the file is too big.
I do have a key word to match on.
example, we want to keep every line... (8 Replies)
Discussion started by: robsonde
8 Replies
5. UNIX for Dummies Questions & Answers
Hi,
one of the server, log directory was never cleaned up. We have so many files. I want to remove all the files that starts with dfr* but I get error message when I use the *.
rm qfr*
bash: /usr/bin/rm: Arg list too long
I am trying to write this script but not working.
... (4 Replies)
Discussion started by: samnyc
4 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Which way is faster rm -rf /path/ or find / -name -exec rm {} \; and why? (7 Replies)
Discussion started by: cain82
7 Replies
7. UNIX for Dummies Questions & Answers
Hi,
here is my problem:
I've got a file with 6 columns (file1):
a b c d e f
a b c d e f
a b c d e f
a b c d e f
I need to add 1 million columns to this file, each column needs to be a zero.
Here is how the result file (file2) should look like (for the sake of the example, I've only... (7 Replies)
Discussion started by: zajtat
7 Replies
LEARN ABOUT FREEBSD
lastlogin
LASTLOGIN(8) BSD System Manager's Manual LASTLOGIN(8)
NAME
lastlogin -- indicate last login time of users
SYNOPSIS
lastlogin [-f file] [-rt] [user ...]
DESCRIPTION
The lastlogin utility will list the last login session of each specified user, or for all users by default. Each line of output contains the
user name, the tty from which the session was conducted, any hostname, and the start time for the session.
If more than one user is given, the session information for each user is printed in the order given on the command line. Otherwise, informa-
tion for all users is printed. By default, the entries are sorted by user name.
The lastlogin utility differs from last(1) in that it only prints information regarding the very last login session. The last login database
is never turned over or deleted in standard usage.
The following options are available:
-f file
Open last login database file instead of the system-wide database.
-r Print the entries in reverse sorted order.
-t Sort the elements by last login time, instead of user name.
FILES
/var/log/utx.lastlogin last login database
SEE ALSO
last(1), getutxent(3), ac(8)
AUTHORS
John M. Vinopal wrote this program in January 1996 and contributed it to the NetBSD project.
BSD
June 6, 2011 BSD