You are not logged in.

#1 13 Mar 2015 12:00

motalab
New Member
Registered: 05 Mar 2015
Posts: 2

what is the windows batch script of the below linux script?

grep -A 10000 "string" file1 > flie2

Offline

#2 14 Mar 2015 11:17

foxidrive
Member
Registered: 04 Apr 2013
Posts: 339

Re: what is the windows batch script of the below linux script?

Test this:

@echo off
type "file1" |findrepl /o:-10000 >"file2"

This uses a helper batch file called `findrepl.bat` (by aacini) - download from:  https://www.dropbox.com/s/rfdldmcb6vwi9xc/findrepl.bat

Place `findrepl.bat` in the same folder as the batch file or on the path.

Offline

Board footer

Powered by