|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem in split command
I want to split a file containing millions of records.
I am issuing the command split -l 20000 filename which will split the file in 20K records each. It works fine except in some files, data after one particular field is lost( the field with space). Say the record is C||121.5||N|131.20|13.5|0|0|0|9.2|4.3|||A||12312007|THIS FIELD|0|0|0||T|PM The split file contains record as C||121.5||N|131.20|13.5|0|0|0|9.2|4.3|||A||12312007|THIS Is this due to spaces? Any solutions?
__________________
Contact info: Primary email: advanced.programmer@gmail.com MSN/email: superprg@hotmail.com AIM: superprg |
|
#2
|
|||
|
|||
|
check whether split is large file aware utility in ur distribution.
"man largefile" for largefiles.
__________________
Dinesh_P_V |
|
#3
|
|||
|
|||
|
Yes,split is large file aware file utility
I figured out the problem. There was some problem with the awk script used in the middle Thanks |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Problem in split command |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|