10-23-2008
Get the latest added part of a text file?
Hi,
I want to get the latest added part of a text file sent over the network to for analysis. Is there a tool to use to keep track of which part of a text file that has already been analysed so only the "new" lines will be sent and handled? I have checked a few tools but I still don´t know how to solve this. Rsync seems to be able to copy the latest added content of a file in an "incremental way" but I don´t know how to take care of this "incremental content" in a script.
Do you have any ideas?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have this text in a file where I need to move part of the text....
<Relation1 OriginatingObjectID="Holding_1" RelatedObjectID="Party_1" id="Relation_1">
<OriginatingObjectType tc="4">Holding</OriginatingObjectType>
<RelatedObjectType tc="6">Party</RelatedObjectType>... (4 Replies)
Discussion started by: mgirinath
4 Replies
2. Shell Programming and Scripting
Hi folks,
I want Trailer to be added into the txt file the format is below.
flatfile-> abc.txt
count of the file is 500 records.
I want the trailer in this format: TRAILER|500 (pipe delimeter).
Please suggest the comands ASAP.
Rgds
Ann (5 Replies)
Discussion started by: Haque123
5 Replies
3. UNIX for Dummies Questions & Answers
Ok, I am brand new to UNIX and I am trying to learn a cross between basic script and database use. I had got some ideas off the net on simple ideas for learning UNIX. I am working on creating a simple phone book program that allows myself to enter our employees from work into a phone book text... (0 Replies)
Discussion started by: georgefurbee
0 Replies
4. Shell Programming and Scripting
***************
#some other text
*****************
***************
#some other text
*****************
address1=1.1.1.1
address2=2.2.2.2
address3=3.3.3.3
I have a file where i need to push all the text starting from address1 till end of file to, below . Can anyone of you... (6 Replies)
Discussion started by: srikanthgoodboy
6 Replies
5. Shell Programming and Scripting
Hi guys
So I have a very large log file where each event is logged along with the time that it occurred.
So for e.g. The contents of the file look like:
...
12:00:07 event 0 happened.
12:01:01 event 1 happened.
12:01:05 event 2 happened.
12:01:30 event 3 happened.
12:02:01 event 4... (10 Replies)
Discussion started by: alinaqvi90
10 Replies
6. Shell Programming and Scripting
I have a text file with delimiter "|" and sometimes the zipcode is in "5th" column or "6th" column. I want to scan the file and remove the "-2323" from the zipcode which has zip+4 digits
From
blah|blah|foo|bar||blah|945523-232|USA
blah|blah|foo|bar||blah|foo|94555-2323|USA
To... (8 Replies)
Discussion started by: gubbu
8 Replies
7. Shell Programming and Scripting
I need to extract the following lines from this text and put it in different files.
From xxxx@gmail.com Thu Jun 10 21:15:46 2010
Return-Path: <xxxxx@gmail.com>
X-Original-To: xxx@localhost
Delivered-To:xxxx@localhost
Received: from ubuntu (localhost )
by ubuntu (Postfix) with ESMTP... (11 Replies)
Discussion started by: waxo
11 Replies
8. Shell Programming and Scripting
0400903071220312 20120322 20:21
1TRANTELSTRAFLEXCAB22032012CMP201323930000812201108875802100A003485363 12122011AUS 182644 000C2
8122011 0000 000
1TRANTELSTRAFLEXCAB22032012CMP201323930000812201108875802100A003485363 12122011AUS ... (6 Replies)
Discussion started by: rammm
6 Replies
9. Windows & DOS: Issues & Discussions
I have several files that are named like this "DotP_D14 - Verknüpfung"
They all have the " - Verknüpfung" in common.
I'd like to rename all of them to get rid of that last part.
Is this possible with DOS on windows ? (1 Reply)
Discussion started by: pasc
1 Replies
10. UNIX for Dummies Questions & Answers
I am trying to find a code that can help me mail to a list of recipients which are in a text file.
Sample code
$cat recipient.txt
me@test.com
me1@test.com
me2@test.com
I want a mailx step that can read contents of recipient.txt and mail to all the users.
I don't want to use mails... (1 Reply)
Discussion started by: Gurkamal83
1 Replies
LEARN ABOUT OSF1
xmtextfieldreplacewcs
XmTextFieldReplaceWcs(3X) XmTextFieldReplaceWcs(3X)
NAME
XmTextFieldReplaceWcs - A TextField function that replaces part of a wide character string in a TextField widget
SYNOPSIS
#include <Xm/TextF.h>
void XmTextFieldReplaceWcs (widget, from_pos, to_pos, wcstring)
Widget widget;
XmTextPosition from_pos;
XmTextPosition to_pos;
wchar_t *wcstring;
DESCRIPTION
XmTextFieldReplaceWcs replaces part of the wide character string in the TextField widget. The character positions begin at zero and are
numbered sequentially from the beginning of the text.
An example text replacement would be to replace the second and third characters in the text string. To accomplish this, the parameter
from_pos must be 1 and to_pos must be 3. To insert a string after the fourth character, both parameters, from_pos and to_pos, must be 4.
This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCall-
backWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed
first and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. Specifies the TextField widget ID Specifies the start
position of the text to be replaced Specifies the end position of the text to be replaced Specifies the wide character string value to be
added to the TextField widget
For a complete definition of TextField and its associated resources, see XmTextField(3X).
SEE ALSO
XmTextField(3X), XmTextFieldReplace(3X)
XmTextFieldReplaceWcs(3X)