Batch File to Extract data b/w two words

May 1, 2009 at 03:39:43
Specs: Windows XP
Hi, i am new in batch prog. i want a batch file which can extract particular lines between the two words specified .
Thanks in advance

See More: Batch File to Extract data b/w two words

Report •


#1
May 1, 2009 at 05:41:49
if you have Perl
perl -ne '$a=0 if /two/;if(/one/){$a=1;next};print if $a' file

or

perl -ne 'print if /one/../two/' file

Unix Win32 tools | Gawk for Windows


Report •
Related Solutions


Ask Question