[DOS] batch to add a row in text file

March 28, 2011 at 10:21:44
Specs: Windows 7
I want to create a batch file to add a line "<PER>" to the first row of aaa.txt.

Can someone help me with this?


See More: [DOS] batch to add a row in text file

Report •


#1
March 28, 2011 at 10:48:05
Much depends on where in the row.

And the DOS version.


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

M2


Report •

#2
March 28, 2011 at 17:44:46
Here's a Ruby for Windows command


$ ruby -i.bak -pne 'puts "<PER>" if $.==1 ' file


Report •

Related Solutions


Ask Question