I have several hundred text files, and I want to insert one line at the beginning of each file:
For example, one of my files is:
5471,An Degang,"1,100.00",2000-6-18,2001-4-20,2003-9-21,bad debt,loss,,210.87,4.851E+13,8.81301E+13
5471,An Degang,"9,670.00",1997-10-8,1998-9-20,2003-9-21,bad debt,loss,,4659.83,4.851E+13,8.81301E+13
5471,An Degang,"3,120.00",1998-9-23,1999-9-20,2003-9-21,bad debt,loss,,598.11,4.851E+13,8.81301E+13
……
I want to insert this line at the beginning:
Institution,Account Name,Balance,Loan Date,Due Date,Interest Start Date,Level 4,Level 5,On-balance Interest,Off-balance Interest,Customer No.,IOU No.
How should I write the code?
Using sed is fine too.
I've searched online for a long time and still couldn't find suitable code. Please help!
For example, one of my files is:
5471,An Degang,"1,100.00",2000-6-18,2001-4-20,2003-9-21,bad debt,loss,,210.87,4.851E+13,8.81301E+13
5471,An Degang,"9,670.00",1997-10-8,1998-9-20,2003-9-21,bad debt,loss,,4659.83,4.851E+13,8.81301E+13
5471,An Degang,"3,120.00",1998-9-23,1999-9-20,2003-9-21,bad debt,loss,,598.11,4.851E+13,8.81301E+13
……
I want to insert this line at the beginning:
Institution,Account Name,Balance,Loan Date,Due Date,Interest Start Date,Level 4,Level 5,On-balance Interest,Off-balance Interest,Customer No.,IOU No.
How should I write the code?
Using sed is fine too.
I've searched online for a long time and still couldn't find suitable code. Please help!
