Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tail -n +2 fileName.csv | split -l 1000 - split_
- for file in split_*
- do
- head -n 1 fileName.csv > tmp_file
- cat $file >> tmp_file
- mv -f tmp_file $file
- done
- # Once its done. Change the filename
- for i in *; do mv "$i" "$i.csv"; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement