Created
September 2, 2015 14:36
-
-
Save sanguis/3751f1fa2274dfcd1721 to your computer and use it in GitHub Desktop.
a quck and dirty script splits a file by line numbers: use input order $file $prefix $linenumbers
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
#!/bin/bash | |
mkdir $1 | |
cd $1 | |
split -l $2 ../$0 $1 | |
find . -type f -exec mv '{}' '{}'.csv \; | |
cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
download this file with
run it with
example