Skip to content

Instantly share code, notes, and snippets.

@dwaxe
Created February 9, 2015 12:42
Show Gist options
  • Save dwaxe/0ef01b304a0e2163ed43 to your computer and use it in GitHub Desktop.
Save dwaxe/0ef01b304a0e2163ed43 to your computer and use it in GitHub Desktop.
# Compiles .txt files into a single .txt in the correct date order
# File name format: [Month][Day].txt
# File content should end in a newline
cat December[1-3][1-9].txt > all.txt
cat January[1-9].txt >> all.txt
cat January[1-3][1-9].txt >> all.txt
cat February[1-9].txt >> all.txt
# cat February[1-2][1-9].txt >> all.txt
# cat March[1-9].txt >> all.txt
# cat March[1-3][1-9].txt >> all.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment