iscomar001
7/17/2015 - 5:08 PM

Split Files

Split Files


 By Size
 split --bytes 500M --numeric-suffixes --suffix-length=3 foo foo
 By lines
 split -l  407000 BASE_DL70_M7.csv  NAUCALPAN_
 
 split --additional-suffix=.txt -d -l 9000 VALLE_MEXICO_NORTE_03052016R4_20160901_Remesa\ 2\ P6b.txt VALLE_MEXICO_P
 
 Headers
head -n 1 NAUCALPAN_aa > headers


Archivo con headers
cat headers NAUCALPAN_ab > NAUCALPAN_2.csv