13

Trying to add text to the beginning of each line

view full story
linux-howto

http://www.unix.com – Well here goes: I tried to write a batch file that adds a specific fixed text to each line of an already existing text file. for the adding text infront of each line I tried this: Code: for /F "delims=" %%j in (list.txt) do echo.STARTTEXT\%%j >> list.txt for adding text after each line I haven't figured out how to do it. HOWEVER: When I use the code descripted, this: Code: 1stline becomes this ->>> Code: 1stline STARTTEXT1stline I want it to be just Code: STARTTEXT1line so to sum it up I want to add something BEFORE and AFT (HowTos)