troubleshooting Question

split files

Avatar of Vlearns
Vlearns asked on
Unix OSPerl
1 Comment1 Solution474 ViewsLast Modified:
Hi

I am using unix split command to split files

split -l 1000  new1.json s3211 -a 10

i now want to group two lines at a time when i do the split on the files.

line1
line2

line1
line2

i want to make sure that when i split lines, i do not have line 1 in file 1 and line 2 in file2 in the split command

i should use even number in the splits?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
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 1 Comment.
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