You are here: Re: how to delete lines from text file « MsSQL Server « IT news, forums, messages
Re: how to delete lines from text file

Posted by Timo Salmi on 10/09/06 04:36

batman <uspensky@gmail.com> wrote:
> i need to clear everything from this file except the data between the
> START-OF-DATA and END-OF-DATA using a batcj file...

Are you able to use a SED UNIX port? If yes, then the task is fairly
trivial.

878915 Oct 25 2003 ftp://garbo.uwasa.fi/win95/unix/UnxUpdates.zip
UnxUpdates.zip Updates for UnxUtils GNU utilities for native Win32

If not, in XP (the newsgroup for that is alt.msdos.batch.nt) then you'll
first have to find out the line numbers of your delimiter, and the write
out the lines between and including those line numbers. More on that e.g. in

176733 Sep 11 2006 ftp://garbo.uwasa.fi/pc/link/tscmd.zip
tscmd.zip Useful NT/2000/XP script tricks and tips, T.Salmi

Windows Command Line Interface script programming links
http://www.uwasa.fi/~ts/http/http2.html#cmdscript

Followups set to alt.msdos.batch.nt

For all, asking PC batch programming related questions. You'll enhance
your chances and expedite getting answers if you state your OS when asking!

All the best, Timo

--
Prof. Timo Salmi ftp & http://garbo.uwasa.fi/ archives 193.166.120.5
Department of Accounting and Business Finance ; University of Vaasa
mailto:ts@uwasa.fi <http://www.uwasa.fi/~ts/> ; FIN-65101, Finland
Timo's FAQ materials at http://www.uwasa.fi/~ts/http/tsfaq.html

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация