too many files. how to solve
I'm on a MacBookPro with M1Max.
I have a large text file with over 10 Million transactions.
That's too large to insert into the database at once, so I decided to split.
I did `split -d -l5000 transaction.csv trans.` and it runs without problems on linux, where it created exactly 2000 files. I also tried to split into smaller files and the result was having much more files, without problems.
When running the same command on MacOS Monterey, it returns the error `split: too many files`
I tried with `ulimit -n 6000` but still doesn't run.
Any help will be appreciated
MacBook Pro 16″, macOS 12.3