Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe08.iad.POSTED!7564ea0f!not-for-mail
From: Walter Roberson <roberson@hushmail.com>
Organization: Canada Eat The Cookie Foundation
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to remove unwanted text from a .txt file?
References: <gbbqun$qo5$1@fred.mathworks.com>
In-Reply-To: <gbbqun$qo5$1@fred.mathworks.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 9
Message-ID: <ryeCk.36464$QF5.28064@newsfe08.iad>
NNTP-Posting-Host: 24.79.146.116
X-Complaints-To: internet.abuse@sjrb.ca
X-Trace: newsfe08.iad 1222210839 24.79.146.116 (Tue, 23 Sep 2008 23:00:39 UTC)
NNTP-Posting-Date: Tue, 23 Sep 2008 23:00:39 UTC
Date: Tue, 23 Sep 2008 18:01:24 -0500
Xref: news.mathworks.com comp.soft-sys.matlab:491664


Cy abd wrote:

> I work with .txt files that receive streaming data which is set up in uniform
> fields format. However, whenever there is a connection problem the program sends
> a 3 or 4 line message to the text fil regarding data not available! How can
> I programmatically remove those unwanted lines from the file without having
> to manually open it first?

perl, sed, ed, awk, grep, C, matlab, ...