split -l$((`cat filename|wc -l`/5+1)) filename
In reply to Re^3: split a file into number of file based on line count
by JavaFan
in thread split a file into number of file based on line count
by asha80
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |