Guest User

Change leading number

a guest
Aug 11th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.23 KB | None | 0 0
  1. @echo off
  2. setlocal enabledelayedexpansion
  3. set text=
  4. set newline=^& echo.
  5. FOR /F %%i in (numbers.txt) DO (
  6.     set tempVar=%%i
  7.     set tempVar=!tempVar:~1!
  8.     set tempVar=1!tempVar!^!newline!
  9.     set text=!text!!tempVar!
  10. )
  11.  
  12. echo %text%
Advertisement
Add Comment
Please, Sign In to add comment