troubleshooting Question

Input Data into another file

Avatar of faithless1
faithless1 asked on
Perl
7 Comments1 Solution242 ViewsLast Modified:
I have a CSV file (input.csv) containing 50k records with two empty lines seperating every 2K records. I'm looking for a way to insert this data into another CSV file (output) in the 13th column starting on row 5.


Example:

cat input.csv
2000 (1st 2K records)
\n
\n
2000 (2nd 2K records)
\n
\n
2000 (3d 2k records)
etc

The total number of actual records excluding empty lines is 50k. The Data which I need to replace in column 13th in (output.csv) file starts on row 5 and ends on row 50052.

Thank you
ASKER CERTIFIED SOLUTION
nitinsawhney

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros