> lines=$(($(wc -l < "file") / 2))
> split -l $lines file

Doesn't this need to round up to avoid leaving a third file with one line if 
the original file has an odd number of lines?

split -l $((($(wc -l < file) + 1) / 2)) file

Reply via email to