Sponsored Content
Full Discussion: First 400,000 lines?
Top Forums UNIX for Dummies Questions & Answers First 400,000 lines? Post 302487162 by Mbohmer on Tuesday 11th of January 2011 02:54:37 PM
Old 01-11-2011
First 400,000 lines?

Hi,

I need to C&P the first 400,000 lines of a log file into a compressed file using Putty. I already tried emailing myself using mailx (didnt send) and used head -400000 access_log > /tmp/access_log to move the relevant lines into it's own file. And when I tried increasing the scroll back max to 400,000 and ran cat access_log, my window froze.

Anyone have a better way to do this? Thank!
 

6 More Discussions You Might Find Interesting

1. News, Links, Events and Announcements

Microsoft "Donates" $3,000,000,000 to Feds

Surreal quote from the news link below: http://www.washingtonpost.com/wp-dyn/articles/A44615-2002Nov12.html (0 Replies)
Discussion started by: Neo
0 Replies

2. Solaris

apache ErrorDocument 400 /cgi-bin/400.cgi

Hi All, Sorry if the question is trivial for you but, I am new to Apache (2.0.63) and am trying to figure out how to display my 400.cgi. Here is what I have in httpd.conf servername testing DocumentRoot "/usr/local/apache2/htdocs" ErrorDocument 400 /cgi-bin/badrequest-400.cgi Here is... (0 Replies)
Discussion started by: afadaghi
0 Replies

3. UNIX for Dummies Questions & Answers

AS/400

hi everyone,,, Can anybody tell me that whether the AS/400 is an "operating system" or a "Server" ? thanks in advance.... please if possible reply urgently,,,i am waiting..... (8 Replies)
Discussion started by: kunalpatil09
8 Replies

4. UNIX for Dummies Questions & Answers

AS/400

Hi everybody,,,, This is kunal here, I am very new to as/400 and recently started working on it in one of IT company....I am planning to have Certification exam of AS/400. Can anybody please send me the links of different sites where I can have study material of AS/400 and also the details... (1 Reply)
Discussion started by: kunalpatil09
1 Replies

5. AIX

AS/400

Hi everybody, I am learning AS/400 and working on it as a System Administrator. Can anybody please suggest me the best blog site for AS/400....just like Unix.com for Linux / Unix administrator. So that I can get all my answers related to AS/400... thanks in advance, kunal patil :) (0 Replies)
Discussion started by: kunalpatil09
0 Replies

6. Shell Programming and Scripting

Shell script for adding a table in mysql with 10,000 lines ... pls help

Hi , I am new to shell scripting . I need to write a shell script in sql to add 10,000 lines of data in a table . Pls help guys :) ---------- Post updated at 07:08 PM ---------- Previous update was at 03:40 PM ---------- guys please help !!! (3 Replies)
Discussion started by: vinumahalingam
3 Replies
DateTime::Format::Epoch::JD(3pm)			User Contributed Perl Documentation			  DateTime::Format::Epoch::JD(3pm)

NAME
DateTime::Format::Epoch::JD - Convert DateTimes to/from Julian Days SYNOPSIS
use DateTime::Format::Epoch::JD; my $dt = DateTime::Format::Epoch::JD->parse_datetime( 2453244.5 ); # 2004-08-27T00:00:00 DateTime::Format::Epoch::JD->format_datetime($dt); # 2453244.5 my $formatter = DateTime::Format::Epoch::JD->new(); my $dt2 = $formatter->parse_datetime( 2453244.5 ); # 2004-08-27T00:00:00 $formatter->format_datetime($dt2); # 2453244.5 DESCRIPTION
This module can convert a DateTime object (or any object that can be converted to a DateTime object) to the Julian Day number. This is the number of days since noon U.T.C. on January 1, 4713 B.C. (Julian calendar). This time scale was originally proposed by John Herschel, and is often used in astronomical calculations. Similar modules are: o DateTime::Format::Epoch::MJD Implements the "modified Julian Day", starting at midnight U.T.C., November 17, 1858. This number is always 2,400,000.5 lower than the JD, and this count only uses five digits to specify a date between 1859 and about 2130. o DateTime::Format::Epoch::RJD Implements the "reduced Julian Day", starting at noon U.T.C., November 16, 1858. This number is always 2,400,000 lower than the JD. o DateTime::Format::Epoch::TJD Implements the "truncated Julian Day", starting at midnight U.T.C., May 24, 1968. This number is always 2,440,000,5 lower than the JD. Actually, there is another version of the TJD, defined as JD modulo 10,000. But that one is a bit harder to implement, so you'll have to do with this version of TJD. Or don't use TJD's at all. o DateTime::Format::Epoch::RataDie Implements the Rata Die count, starting at January 1, 1 (Gregorian). This count is used by DateTime::Calendar programmers. o DateTime::Format::Epoch::Lilian Implements the Lilian count, named after Aloysius Lilian (a 16th century physician) and first used by IBM (a 19th century punched card machine manufacturer). This counts the number of days since the adoption of the Gregorian calendar. Only days are counted, and October 15, 1584 is day 1. METHODS
Most of the methods are the same as those in DateTime::Format::Epoch. The only difference is the constructor. o new() Constructor of the formatter/parser object. It has no parameters. SUPPORT
Support for this module is provided via the datetime@perl.org email list. See http://lists.perl.org/ for more details. AUTHOR
Eugene van der Pijll <pijll@gmx.net> COPYRIGHT
Copyright (c) 2004 Eugene van der Pijll. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
DateTime datetime@perl.org mailing list perl v5.10.1 2007-12-03 DateTime::Format::Epoch::JD(3pm)
All times are GMT -4. The time now is 04:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy