Last active
September 5, 2018 15:51
-
-
Save joaoluiznaufel/ee025d8f6bbda3a488d24de1128ba3e8 to your computer and use it in GitHub Desktop.
Shell Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Split a big file into multiples fiels | |
tail -n +2 file_name.csv | split -l 59000 - split_ | |
for file in split_* | |
do | |
head -n 1 file_name.csv > tmp_file | |
cat $file >> tmp_file | |
mv -f tmp_file $file | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment