Entering edit mode
5.5 years ago
jaqx008
▴
110
For some reason split -l
stopped working on my terminal or through shell script. Someone please help.
example:
split -l 1 xy.bed
it outputs xaa with all lines in xy.bed
Also worth checking is
which split
, and ensuring it's the actualsplit
command one expects.which split gave
there are 200 lines in bed. text was made with text wrangler. it was working before were i tried to run the command with a bed file with about 6 million lines and I think it died or the command is broken or something. the out put xaa contains 200 lines as well. see few lines below
Check your line endings. You should be able to use a simple
sed 's/\r/\n/' file
to replace any carriage returns with new lines.My bad the file was made in excel. that may be the reason. I am about to see
This was the problem all along. Thanks for all your help