The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Check File Exists and compare to previous day file script rbknisely Shell Programming and Scripting 3 02-07-2008 11:53 AM
Checking file size of zip file skwyer UNIX for Dummies Questions & Answers 2 10-11-2007 12:51 PM
checking size of the first line in a log file kiran1112 Shell Programming and Scripting 19 03-22-2007 02:46 PM
Help with checking file size ssmith001 Shell Programming and Scripting 15 09-08-2005 10:48 PM
Checking file size jkuchar747 UNIX for Dummies Questions & Answers 2 03-02-2005 02:34 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-05-2007
stuck1 stuck1 is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 5
Error checking a file from previous file size

Hi,

I'm currently trying to write a script that checks a log file for certain errors. Once checked it then records the filesize in another file. All this is fine, my problem is that the next time I do my error check I only want to check from previously recorded filesize to the end of file. I'm not sure how how to script this so that it starts reading the file a certain specified file size so any suggestions or examples would be greatly appreciated.
  #2 (permalink)  
Old 12-05-2007
Smiling Dragon's Avatar
Smiling Dragon Smiling Dragon is offline Forum Advisor  
Disorganised User
  
 

Join Date: Nov 2007
Location: New Zealand
Posts: 922
tail -c <size> is your friend
  #3 (permalink)  
Old 12-06-2007
stuck1 stuck1 is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 5
Thats the one, thanks for your help.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 11:19 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0