Solved text remove 4 words

August 1, 2012 at 06:45:15
Specs: Windows XP
example
00001234567
10101234567
out file
1234567
1234567
remove start 4 words

See More: text remove 4 words

Report •

#1
August 1, 2012 at 06:58:26
✔ Best Answer
Let's say remove first 4 CHARS from each line.

:: ===== script starts here ===============
::
:: faiz.bat 2012-08-01 20:52:39.05
@echo off > newfile & setLocal enableDELAYedeXpansioN

for /f "tokens=* delims= " %%a in (myfile) do (
set S=%%a
>> newfile echo !S:~4!
)

::====== script ends here =================


====================================
Life is too important to be taken seriously.

M2


Report •

#2
August 11, 2012 at 02:04:46
its work but 1 bug
example
1234
567891
out put is

ECHO is off.
91
________________


Report •
Related Solutions


Ask Question