string - How to add empty space using batch script? -


is there way loop text file add empty space in front of each line?

commit.txt

commit c9bee merge: 7db author: tom date:   fri mar 13  author: tim 

output.txt

 commit c9bee  merge: 7db  author: tom  date:   fri mar 13   author: tim 

here's 1 solution:

for /f "delims=" %i in (file) @echo  %i 

note must double percents if use in script (as opposed interactive usage).


Comments

Popular posts from this blog

node.js - Mongoose: Cast to ObjectId failed for value on newly created object after setting the value -

[C++][SFML 2.2] Strange Performance Issues - Moving Mouse Lowers CPU Usage -

ios - Possible to get UIButton sizeThatFits to work? -