File size: 596 Bytes
ecfdb86
 
bb46e54
 
 
ecfdb86
bb46e54
ecfdb86
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Move
mkdir years
for year in 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018  # 2004 
do
	mkdir years/${year}
	cat lists/$year.txt | xargs -i mv distilled/{}.json years/${year}
done

# Create tars
tar cfz 2004.tar.gz 2004
tar cfz 2005.tar.gz 2005
tar cfz 2006.tar.gz 2006
tar cfz 2007.tar.gz 2007
tar cfz 2008.tar.gz 2008
tar cfz 2009.tar.gz 2009
tar cfz 2010.tar.gz 2010
tar cfz 2011.tar.gz 2011
tar cfz 2012.tar.gz 2012
tar cfz 2013.tar.gz 2013
tar cfz 2014.tar.gz 2014
tar cfz 2015.tar.gz 2015
tar cfz 2016.tar.gz 2016
tar cfz 2017.tar.gz 2017
tar cfz 2018.tar.gz 2018