How would one copy only the first x lines of a csv
file into a new csv
file via the terminal?
This might not work for you if your CSV contains "lines" containing newline seperators, e.g. in Quotes. A short PHP Script that would solve this issue, so you would get 1500 "lines"/"datasets", each possibly containing multiple "file lines"
To execute:
php -f scriptname.php input.csv output.csv 1500