script to delete first charac in a txt file

February 2, 2011 at 08:30:15
Specs: Windows XP
I want to delete the first charactor of all line in a large test file. Can someone help me with the .bat code do this

See More: script to delete first charac in a txt file

Report •


#1
February 2, 2011 at 09:05:39
Problem posted and solved almost ONE billion times

@echo off & setlocal EnableDelayedExpansion > File.new
for /F "delims=" %%j in (File.txt) do (
  set line=%%j
  set line=!line:~1!
  echo.!line!>> File.new
)


Report •
Related Solutions


Ask Question