a guest Oct 19th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- rm -rf 100 && mkdir 100 && for i in $(ls *.csv); do grep -e '^[0-9]' $i > tmp; awk 'NR%100==1' tmp > 100/$i; last=$(tail -n1 $i); echo $last; echo $last >> 100/$i; rm tmp; done
RAW Paste Data