Created
April 24, 2018 19:23
-
-
Save zbrasseaux/152e700824769f4a81d2e96c1854f3ea to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# chopping up national pokedex into each region with a bash script | |
echo "Chopping Kanto" | |
cat National\ Pokedex\ Gen\ 6\ V5.15.1.1\ -\ Pokedex.csv | head -n 1 > header | |
cat National\ Pokedex\ Gen\ 6\ V5.15.1.1\ -\ Pokedex.csv | head -n 152 > kantodex.csv | |
sleep 1 | |
echo "Chopping Johto" | |
cat header > johtodex.csv | |
cat National\ Pokedex\ Gen\ 6\ V5.15.1.1\ -\ Pokedex.csv | tail -n 688 | head -n 100 >> johtodex.csv | |
sleep 1 | |
echo "Chopping Hoenn" | |
cat header > hoenndex.csv | |
cat National\ Pokedex\ Gen\ 6\ V5.15.1.1\ -\ Pokedex.csv | tail -n 588 | head -n 138 >> hoenndex.csv | |
sleep 1 | |
echo "Chopping Sinnoh" | |
cat header > sinnohdex.csv | |
cat National\ Pokedex\ Gen\ 6\ V5.15.1.1\ -\ Pokedex.csv | tail -n 450 | head -n 116 >> sinnohdex.csv | |
sleep 1 | |
echo "Chopping Unova" | |
cat header > unovadex.csv | |
cat National\ Pokedex\ Gen\ 6\ V5.15.1.1\ -\ Pokedex.csv | tail -n 334 | head -n 158 >> unovadex.csv | |
sleep 1 | |
echo "Chopping Kalos" | |
cat header > kalosdex.csv | |
cat National\ Pokedex\ Gen\ 6\ V5.15.1.1\ -\ Pokedex.csv | tail -n 176 >> kalosdex.csv | |
sleep 1 | |
mkdir National\ Pokedex\ Data | |
mv *dex.csv National\ Pokedex\ Data | |
echo "Data Chopping Complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment