|
Posted by Dr John Stockton on 10/10/06 17:04
JRS: In article <1160363613.855662.104440@b28g2000cwb.googlegroups.com>,
dated Sun, 8 Oct 2006 20:13:33 remote, seen in news:alt.msdos.batch,
batman <uspensky@gmail.com> posted :
>
>i need to clear everything from this file except the data between the
>START-OF-DATA and END-OF-DATA using a batcj file...
MiniTrue :
mtr -n -x+ $1.txt (\A[^]*START-OF-DATA)([^]*)(END-OF-DATA[^]*) = \2
There may be a limit on the sizes of the three components of the file.
Otherwise, it's trivial in any HLL, even BASIC.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
I find MiniTrue useful for viewing/searching/altering files, at a DOS prompt;
free, DOS/Win/UNIX, <URL:http://www.idiotsdelight.net/minitrue/>
Navigation:
[Reply to this message]
|